Function at 0x5043b0
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, 0xc0
push ebp
mov ebp, dword [esp + 0xcc]
push esi
mov esi, dword [esp + 0xd8]
push eax
push ecx
mov ecx, dword [esp + 0xec]
lea eax, [esp + 0x7c]
push edx
mov edx, dword [esp + 0xec]
push eax
push ecx
push edx
push ebp
push esi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x504406
pop esi
mov eax, 1
pop ebp
add esp, 0xc0
ret
mov ecx, dword [esp + 0x90]
mov edx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0x94]
mov esi, dword [esi + 8]
sub ecx, edi
mov edi, dword [esp + 0x84]
imul edi, edx
sub eax, ebx
mov dword [esp + 0x10], esi
imul ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x5c], edx
lea edi, [edi + esi*4]
add edi, dword [ebp + 4]
mov ebp, dword [esp + 0x90]
lea ebx, [ebx + ebp*4]
mov ebp, dword [esp + 0xe0]
add ebx, dword [ebp + 4]
cmp byte [esp + 0x7c], 0
je 0x504813
mov ebp, ecx
mov edx, ecx
sar ebp, 3
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x88]
and edx, 7
sub esi, ebp
mov ebp, dword [esp + 0x5c]
add esi, edx
mov dword [esp + 0x58], edx
lea esi, [ebp + esi*4]
mov dword [esp + 0x6c], esi
mov esi, edx
sub esi, ecx
mov ecx, dword [esp + 0x10]
test eax, eax
lea ecx, [ecx + esi*4]
mov dword [esp + 0x70], ecx
jle 0x5049c8
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x5047a7
mov esi, dword [esp + 0xe4]
lea ebp, [ebx + 8]
shl esi, 8
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x46]
and eax, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x46], cl
mov edx, dword [esp + 0x45]
and edx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x45], al
mov ecx, dword [esp + 0x44]
and ecx, 0xff
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x4b], 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov ecx, ebx
mov byte [esp + 0x48], dl
call fcn.0051e8e0
mov ecx, dword [edi + 4]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x4e]
and edx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x4e], al
mov ecx, dword [esp + 0x4d]
and ecx, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x4d], dl
mov eax, dword [esp + 0x4c]
and eax, 0xff
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x53], 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x50], cl
lea ecx, [ebp - 4]
call fcn.0051e8e0
mov eax, dword [edi + 8]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3e]
and ecx, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x3e], dl
mov eax, dword [esp + 0x3d]
and eax, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x3d], cl
mov edx, dword [esp + 0x3c]
and edx, 0xff
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
mov al, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x43], 0xff
mov byte [esp + 0x40], al
call fcn.0051e8e0
mov edx, dword [edi + 0xc]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2e]
and eax, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x2e], cl
mov edx, dword [esp + 0x2d]
and edx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x2d], al
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x33], 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
lea ecx, [ebp + 4]
mov byte [esp + 0x30], dl
call fcn.0051e8e0
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x26]
and edx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x26], al
mov ecx, dword [esp + 0x25]
and ecx, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x25], dl
mov eax, dword [esp + 0x24]
and eax, 0xff
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2b], 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x28], cl
lea ecx, [ebp + 8]
call fcn.0051e8e0
mov eax, dword [edi + 0x14]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x36]
and ecx, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x36], dl
mov eax, dword [esp + 0x35]
and eax, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x35], cl
mov edx, dword [esp + 0x34]
and edx, 0xff
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebp + 0xc]
mov al, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x3b], 0xff
mov byte [esp + 0x38], al
call fcn.0051e8e0
mov edx, dword [edi + 0x18]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1e]
and eax, 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x1e], cl
mov edx, dword [esp + 0x1d]
and edx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x1d], al
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x23], 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
lea ecx, [ebp + 0x10]
mov byte [esp + 0x20], dl
call fcn.0051e8e0
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x16]
and edx, 0xff
mov al, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x16], al
mov ecx, dword [esp + 0x15]
and ecx, 0xff
mov dl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x15], dl
mov eax, dword [esp + 0x14]
and eax, 0xff
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x1b], 0xff
mov cl, byte [eax + esi + 0xa2ee04]
mov byte [esp + 0x18], cl
lea ecx, [ebp + 0x14]
call fcn.0051e8e0
mov eax, dword [esp + 0x10]
add ebx, 0x20
add ebp, 0x20
add edi, 0x20
dec eax
mov dword [esp + 0x10], eax
jne 0x5044d6
mov edx, dword [esp + 0x58]
test edx, edx
jle 0x5047eb
mov ebp, edi
mov esi, ebx
sub ebp, ebx
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0xe4]
mov eax, dword [esi + ebp]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00500af0
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0051e8e0
mov eax, dword [esp + 0x54]
add esi, 4
dec eax
mov dword [esp + 0x54], eax
jne 0x5047b5
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x5c]
add ebx, esi
add edi, ecx
dec eax
mov dword [esp + 0x5c], eax
jne 0x5044b9
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0xc0
ret
mov esi, dword [esp + 0xbc]
imul edx, dword [esp + 0xcc]
shl esi, 2
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0xc0]
test eax, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x58], esi
jle 0x5049c8
inc ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x78]
add eax, esi
mov dword [esp + 0x58], eax
js 0x5048a0
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x14]
add edi, ebp
sub eax, esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edi
test ecx, ecx
mov dword [esp + 0x54], eax
jle 0x5049a4
mov esi, dword [esp + 0xe4]
mov eax, ebx
shl esi, 8
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
add ecx, edx
mov dword [esp + 0x54], ecx
js 0x5048e1
mov edx, dword [esp + 0x24]
add edi, 4
sub ecx, edx
mov dword [esp + 0x54], ecx
mov ecx, dword [edi]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x62]
and edx, 0xff
mov dl, byte [edx + esi + 0xa2ee04]
mov byte [esp + 0x62], dl
mov ecx, dword [esp + 0x61]
and ecx, 0xff
movzx dx, dl
mov bl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x61], bl
mov ecx, dword [esp + 0x60]
and ecx, 0xff
mov cl, byte [ecx + esi + 0xa2ee04]
mov byte [esp + 0x60], cl
movzx cx, byte [eax + 1]
add ecx, edx
cmp cx, 0xff
jbe 0x50493d
mov ecx, 0xff
movzx bp, byte [eax]
xor dx, dx
mov dl, bl
add ebp, edx
cmp bp, 0xff
mov dword [esp + 0x74], ebp
jbe 0x50495b
mov dword [esp + 0x74], 0xff
movzx dx, byte [eax - 1]
movzx bx, byte [esp + 0x60]
add edx, ebx
cmp dx, 0xff
jbe 0x504974
mov edx, 0xff
mov ebx, dword [esp + 0x2c]
mov byte [eax + 1], cl
mov cl, byte [esp + 0x74]
mov byte [eax - 1], dl
mov byte [eax], cl
mov ecx, dword [esp + 0x6c]
mov byte [eax + 2], 0xff
add edi, ebx
add eax, 4
dec ecx
mov dword [esp + 0x6c], ecx
jne 0x5048c4
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
lea edi, [eax + edx]
mov eax, dword [esp + 0x68]
add ebx, esi
dec eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x68], eax
jne 0x504880
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0xc0
ret