Function at 0x5062c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub esp, 0xb4
push ebx
mov ebx, dword [esp + 0xc0]
push edi
mov edi, dword [esp + 0xcc]
push eax
push ecx
mov ecx, dword [esp + 0xe0]
lea eax, [esp + 0x70]
push edx
mov edx, dword [esp + 0xe0]
push eax
push ecx
push edx
push ebx
push edi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x506316
pop edi
mov eax, 1
pop ebx
add esp, 0xb4
ret
mov edx, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x8c]
sub edx, ebp
mov ebp, dword [edi + 8]
mov ecx, dword [esp + 0x84]
push esi
mov esi, dword [ebx + 8]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x78]
sub eax, ecx
imul ecx, dword [esp + 0x10]
imul ebp, esi
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x64], edx
lea ebp, [ebp + esi*4]
add ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x84]
lea ebx, [ecx + ebx*4]
mov ecx, dword [edi + 4]
add ebx, ecx
mov cl, byte [esp + 0x70]
test cl, cl
je 0x5066d2
mov edi, dword [esp + 0x7c]
mov ecx, edx
and ecx, 7
sub esi, edi
mov edi, dword [esp + 0x44]
add esi, ecx
sar edx, 3
lea esi, [edi + esi*4]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x60], esi
mov esi, ecx
sub esi, edi
mov edi, dword [esp + 0x10]
test eax, eax
lea esi, [edi + esi*4]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], esi
jle 0x506879
mov dword [esp + 0x44], eax
test edx, edx
jle 0x50662a
lea edi, [ebx + 8]
lea esi, [ebp + 0xb]
mov dword [esp + 0x48], edx
mov eax, dword [ebp]
xor ecx, ecx
mov cl, byte [esi - 8]
mov dword [esp + 0x10], eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004f8cc0
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.00506890
mov eax, dword [esi - 7]
xor ecx, ecx
mov cl, byte [esi - 4]
mov dword [esp + 0x10], eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004f8cc0
lea edx, [esp + 0x10]
lea ecx, [edi - 4]
push edx
call fcn.00506890
mov eax, dword [esi - 3]
xor ecx, ecx
mov cl, byte [esi]
mov dword [esp + 0x10], eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004f8cc0
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00506890
mov eax, dword [esi + 1]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x16]
xor eax, eax
and ecx, 0xff
mov ah, byte [esi + 4]
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x16], dl
mov ecx, dword [esp + 0x15]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x15], dl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
mov byte [esp + 0x17], 0
mov dl, byte [ecx + eax + 0xa2ee04]
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 4]
mov byte [esp + 0x18], dl
call fcn.00506890
mov ecx, dword [esi + 5]
xor eax, eax
mov ah, byte [esi + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x36]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x36], cl
mov edx, dword [esp + 0x35]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x35], cl
mov edx, dword [esp + 0x34]
and edx, 0xff
lea ecx, [esp + 0x34]
push ecx
lea ecx, [edi + 8]
mov al, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x3b], 0
mov byte [esp + 0x38], al
call fcn.00506890
mov edx, dword [esi + 9]
xor eax, eax
mov ah, byte [esi + 0xc]
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x26]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x26], dl
mov ecx, dword [esp + 0x25]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x25], dl
mov ecx, dword [esp + 0x24]
and ecx, 0xff
mov byte [esp + 0x27], 0
mov dl, byte [ecx + eax + 0xa2ee04]
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0xc]
mov byte [esp + 0x28], dl
call fcn.00506890
mov ecx, dword [esi + 0xd]
xor eax, eax
mov ah, byte [esi + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3e]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x3e], cl
mov edx, dword [esp + 0x3d]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x3d], cl
mov edx, dword [esp + 0x3c]
and edx, 0xff
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x10]
mov al, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x43], 0
mov byte [esp + 0x40], al
call fcn.00506890
mov edx, dword [esi + 0x11]
xor eax, eax
mov ah, byte [esi + 0x14]
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x2e]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x2e], dl
mov ecx, dword [esp + 0x2d]
and ecx, 0xff
mov dl, byte [ecx + eax + 0xa2ee04]
mov byte [esp + 0x2d], dl
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
mov byte [esp + 0x2f], 0
mov dl, byte [ecx + eax + 0xa2ee04]
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x14]
mov byte [esp + 0x30], dl
call fcn.00506890
mov eax, dword [esp + 0x48]
add ebx, 0x20
add edi, 0x20
add ebp, 0x20
add esi, 0x20
dec eax
mov dword [esp + 0x48], eax
jne 0x5063d0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
test ecx, ecx
jle 0x5066aa
mov edi, ebx
mov esi, ebp
sub edi, ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [esi]
xor eax, eax
mov ah, byte [esi + 3]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1e]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x1e], cl
mov edx, dword [esp + 0x1d]
and edx, 0xff
mov cl, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x1d], cl
mov edx, dword [esp + 0x1c]
and edx, 0xff
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + esi]
mov al, byte [edx + eax + 0xa2ee04]
mov byte [esp + 0x23], 0
mov byte [esp + 0x20], al
call fcn.00506890
mov eax, dword [esp + 0x10]
add esi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x506638
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x44]
add ebx, edi
add ebp, esi
dec eax
mov dword [esp + 0x44], eax
jne 0x5063be
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xb4
ret
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0xa4]
shl ecx, 2
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x44]
imul ecx, dword [esp + 0xc0]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0xac]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0xb4]
test eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], esi
jle 0x506879
add ebx, 2
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x68]
add eax, esi
mov dword [esp + 0x4c], eax
js 0x506765
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x6c]
add ebp, edi
sub eax, esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebp
test edx, edx
mov dword [esp + 0x48], eax
jle 0x506859
mov eax, ebx
mov edi, edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
add ecx, edx
mov dword [esp + 0x48], ecx
js 0x50679a
mov edx, dword [esp + 0x3c]
add ebp, 4
sub ecx, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x56]
xor ecx, ecx
and edx, 0xff
mov ch, byte [ebp + 3]
mov dl, byte [edx + ecx + 0xa2ee04]
mov byte [esp + 0x56], dl
mov esi, dword [esp + 0x55]
and esi, 0xff
movzx dx, dl
mov bl, byte [esi + ecx + 0xa2ee04]
mov byte [esp + 0x55], bl
mov esi, dword [esp + 0x54]
and esi, 0xff
mov cl, byte [esi + ecx + 0xa2ee04]
mov byte [esp + 0x54], cl
movzx cx, byte [eax - 2]
sub ecx, edx
cmp cx, 0xff
jbe 0x5067f9
xor ecx, ecx
movzx si, byte [eax - 1]
xor dx, dx
mov dl, bl
sub esi, edx
cmp si, 0xff
mov dword [esp + 0x50], esi
jbe 0x506818
mov dword [esp + 0x50], 0
movzx dx, byte [eax]
movzx si, byte [esp + 0x54]
sub edx, esi
cmp dx, 0xff
jbe 0x50682d
xor edx, edx
mov esi, dword [esp + 0x24]
mov byte [eax - 2], cl
mov cl, byte [esp + 0x50]
mov byte [eax], dl
mov byte [eax - 1], cl
mov byte [eax + 1], 0
add ebp, esi
add eax, 4
dec edi
jne 0x50677d
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add ebx, esi
lea ebp, [eax + ecx]
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], eax
jne 0x506745
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xb4
ret