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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x3f0]
mov ecx, dword [ebp + 0x400]
push esi
mov esi, dword [ebp + 0x3e0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x74], ecx
push edi
mov dword [esp + 0x74], ebp
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42af14
mov edx, dword [ebp + 0x53c]
sub eax, ecx
mov ecx, dword [ebp + 0x540]
mov dword [esp + 0x44], eax
mov eax, 1
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0x544]
mov dword [ebp + 0x53c], eax
mov dword [ebp + 0x540], eax
mov dword [ebp + 0x544], eax
mov eax, dword [ebp + 0x554]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x550]
lea edi, [eax + eax]
mov dword [esp + 0x8c], eax
lea eax, [edx + edx]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], edx
mov ecx, edi
jge 0x42af7d
xor eax, eax
cmp ecx, ebx
jge 0x42af83
xor ecx, ecx
mov dword [ebp + 0x550], eax
mov eax, dword [ebp + 0x3dc]
push 0x489bd5
mov dword [ebp + 0x554], ecx
push eax
mov ecx, ebp
call fcn.00428780
mov ecx, dword [ebp + 0x550]
lea eax, [edi + 0x10]
imul eax, eax, 0x780
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x554]
add eax, 8
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x34]
lea edx, [ecx + ecx + 8]
shl eax, 2
lea ecx, [eax + eax*2 + 0xc]
mov dword [esp + 0x60], ecx
lea ecx, [edi + 4]
imul ecx, ecx, 0x780
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x44], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x90], edx
mov dword [esp + 0x18], ebx
jle 0x42b381
sar edi, 1
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0xa4]
sar eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x14], edi
jmp 0x42b020
mov edi, dword [esp + 0x14]
jmp 0x42b020
movsx eax, byte [edi]
xor edx, edx
mov word [esp + 0x10], dx
push eax
mov byte [esp + 0x16], dl
call fcn.00466312
add esp, 4
test eax, eax
je 0x42b078
push 2
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00465720
mov ecx, dword [esp + 0xac]
add esp, 0xc
lea edx, [esp + 0x94]
push edx
push 2
lea eax, [esp + 0x18]
push eax
push ecx
call dword [0x489030]
mov ecx, dword [esp + 0x18]
inc ecx
inc edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
jmp 0x42b0a5
push 1
lea edx, [esp + 0x14]
push edi
push edx
call fcn.00465720
mov edx, dword [esp + 0xac]
add esp, 0xc
lea eax, [esp + 0x94]
push eax
push 1
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [0x489030]
mov ecx, dword [esp + 0x68]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b0c2
mov edi, dword [ebp + 0x538]
sub eax, edx
cmp edi, 0xa8c
mov edx, dword [ebp + 0x3dc]
mov ecx, 8
jne 0x42b0ed
mov ecx, dword [ebp + 0x554]
add ecx, 8
push eax
lea eax, [esp + 0x14]
push eax
push 8
push ecx
push edx
call dword [0x48902c]
mov ecx, dword [ebp + 0x54c]
mov edx, dword [ebp + 0x548]
push 0xcc0020
sub ecx, 4
push ecx
mov ecx, dword [esp + 0xa8]
lea eax, [edx + ebx - 4]
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [ebp + 0x3fc]
push edx
push eax
push 0
push 0
push ecx
call dword [0x48905c]
mov ecx, dword [esp + 0x50]
mov eax, 0x1e00
cmp ecx, eax
mov dword [esp + 0x20], eax
jle 0x42b319
mov edi, dword [esp + 0x48]
lea edx, [edi + 0x1e0c]
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x60]
mov eax, 0xc
cmp ecx, eax
mov dword [esp + 0x1c], eax
jle 0x42b2f2
mov ecx, dword [esp + 0x78]
mov eax, ecx
sub eax, edi
mov dword [esp + 0x38], eax
mov eax, ecx
sub eax, edi
inc eax
sub ecx, edi
add ecx, 2
mov dword [esp + 0x64], eax
mov ebp, 1
mov dword [esp + 0x40], ecx
mov ebx, 2
lea ecx, [ecx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ecx, eax
shl ecx, 1
movzx eax, byte [esi + ecx - 0x780]
mov dword [esp + 0x54], eax
movzx eax, byte [esi + ecx + 0x780]
mov dword [esp + 0x88], eax
movzx eax, byte [esi + ecx - 0x77d]
movzx edi, byte [esi + ecx - 3]
mov dword [esp + 0x3c], eax
movzx eax, byte [esi + ecx + 0x77d]
mov dword [esp + 0x5c], eax
movzx eax, byte [esi + ecx + 3]
mov dword [esp + 0x30], eax
movzx eax, byte [ecx + esi]
mov dword [esp + 0x80], eax
movzx eax, byte [esi + ecx - 0x783]
movzx ecx, byte [esi + ecx + 0x783]
and eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x6c], edi
and edi, ecx
mov ecx, dword [esp + 0x3c]
or eax, edi
and ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
or eax, ecx
mov ecx, dword [esp + 0x88]
and edi, ecx
or eax, edi
mov edi, dword [esp + 0x80]
and eax, edi
add eax, dword [esp + 0x6c]
add eax, dword [esp + 0x3c]
add eax, dword [esp + 0x54]
add eax, edi
add eax, dword [esp + 0x30]
add eax, dword [esp + 0x5c]
add eax, ecx
mov edi, 8
sub edi, eax
test eax, eax
je 0x42b2af
mov ecx, dword [esp + 0x38]
movzx ecx, byte [ecx + edx]
imul ecx, edi
mov ebx, eax
imul ebx, dword [esp + 0x2c]
add ecx, ebx
sar ecx, 3
mov byte [edx], cl
mov ecx, dword [esp + 0x64]
movzx ecx, byte [ecx + edx]
imul ecx, edi
mov ebx, eax
imul eax, dword [esp + 0x4c]
imul ebx, dword [esp + 0x28]
add ecx, ebx
sar ecx, 3
mov ebp, 1
mov byte [edx + ebp], cl
mov ecx, dword [esp + 0x40]
movzx ecx, byte [ecx + edx]
imul ecx, edi
add ecx, eax
sar ecx, 3
mov ebx, 2
jmp 0x42b2c9
mov eax, dword [esp + 0x38]
mov cl, byte [eax + edx]
mov eax, dword [esp + 0x64]
mov byte [edx], cl
mov cl, byte [eax + edx]
mov eax, dword [esp + 0x40]
mov byte [edx + ebp], cl
mov cl, byte [eax + edx]
mov eax, dword [esp + 0x1c]
mov byte [ebx + edx], cl
mov ecx, dword [esp + 0x60]
add eax, 3
add edx, 3
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x42b1a0
mov ebp, dword [esp + 0x74]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
add eax, 0x780
add edx, 0x780
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], edx
jl 0x42b160
mov edx, dword [ebp + 0x3ec]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
push 0xcc0020
push 4
push 4
push edx
mov edx, dword [ebp + 0x54c]
push eax
mov eax, dword [ebp + 0x548]
push ecx
mov ecx, dword [esp + 0xb8]
push edx
add eax, ebx
push eax
push ecx
call dword [0x48905c]
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
add ebx, eax
mov eax, dword [esp + 0x18]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x42b017
xor ebx, ebx
mov eax, dword [ebp + 0x42c]
cmp eax, ebx
je 0x42b3b2
mov edx, dword [ebp + 0x3dc]
push eax
push edx
call dword [0x48904c]
mov eax, dword [ebp + 0x428]
push eax
call dword [0x489054]
mov dword [ebp + 0x428], ebx
mov dword [ebp + 0x42c], ebx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
pop edi
mov dword [ebp + 0x53c], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0x540], edx
mov edx, dword [esp + 0x88]
pop esi
mov dword [ebp + 0x544], eax
mov dword [ebp + 0x550], ecx
mov dword [ebp + 0x554], edx
pop ebp
mov al, 1
pop ebx
add esp, 0x8c
ret 8