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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov edi, eax
mov dword [esp + 0xc], 0
test edi, edi
jne 0x42ca64
lea eax, [edi - 0x66]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x58]
add eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x5c]
adc ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x30]
or ebx, 0xffffffff
test edx, edx
je 0x42ca8d
push 0
push ecx
push eax
mov eax, dword [edi + 0x1c]
push esi
push eax
call edx
add esp, 0x14
jmp 0x42caa6
xor edx, edx
cmp eax, eax
jne 0x42caaa
cmp edx, ecx
jne 0x42caaa
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x28]
push eax
push esi
push ecx
call edx
add esp, 0x10
test eax, eax
je 0x42cab0
mov dword [esp + 0xc], ebx
jmp 0x42cadf
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x14]
push eax
push ecx
mov esi, edi
call fcn.0042baa0
add esp, 8
test eax, eax
je 0x42cacd
mov dword [esp + 0xc], ebx
jmp 0x42cadf
cmp dword [esp + 0x14], 0x2014b50
je 0x42cadf
mov dword [esp + 0xc], 0xffffff99
mov eax, dword [edi + 0x30]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42caf8
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42cb11
mov dword [esp + 0xc], ebx
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42cb2a
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x30]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42cb43
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x38]
push ecx
push edx
mov esi, edi
call fcn.0042baa0
add esp, 8
test eax, eax
je 0x42cb5e
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x38]
xor edx, edx
mov esi, ecx
mov eax, edx
shrd esi, eax, 0x10
mov ebx, esi
shr eax, 0x10
mov dword [esp + 0x20], esi
and ebx, 0x1f
mov dword [esp + 0x74], ebx
mov ebx, eax
shrd esi, ebx, 5
and esi, 0xf
dec esi
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x20]
shrd esi, eax, 9
and esi, 0x7f
shr eax, 9
add esi, 0x7bc
mov dword [esp + 0x7c], esi
mov eax, ecx
mov esi, edx
shrd eax, esi, 0xb
and eax, 0x1f
mov dword [esp + 0x70], eax
mov eax, ecx
and ecx, 0x1f
shrd eax, edx, 5
add ecx, ecx
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x3c]
shr edx, 5
mov edx, dword [edi + 0x30]
push ecx
and eax, 0x3f
shr esi, 0xb
push edx
mov esi, edi
shr ebx, 5
mov dword [esp + 0x74], eax
call fcn.0042baa0
add esp, 8
test eax, eax
je 0x42cbf0
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
jmp 0x42cbf4
mov ebx, dword [esp + 0xc]
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.0042baa0
add esp, 8
test eax, eax
je 0x42cc10
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov ecx, dword [edi + 0x30]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0
call fcn.0042baa0
add esp, 8
test eax, eax
je 0x42cc3c
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov ecx, dword [edi + 0x30]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42cc68
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x30]
lea edx, [esp + 0x54]
push edx
push eax
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42cc84
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x58]
push ecx
push edx
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42cca0
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42ccbc
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x30]
lea edx, [esp + 0x60]
push edx
push eax
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42ccd8
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.0042baa0
add esp, 8
test eax, eax
je 0x42ccf4
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.0042baa0
add esp, 8
test eax, eax
je 0x42cd10
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], esi
test ebx, ebx
jne 0x42ce11
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42cd86
mov ecx, dword [ebp + 0x14]
cmp esi, ecx
jae 0x42cd47
mov byte [esi + eax], bl
mov dword [esp + 0x10], esi
jmp 0x42cd4b
mov dword [esp + 0x10], ecx
test esi, esi
je 0x42cd76
test ecx, ecx
je 0x42cd76
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x30]
push ecx
mov ecx, dword [edi + 4]
push eax
mov eax, dword [edi + 0x1c]
push edx
push eax
call ecx
add esp, 0x10
cmp eax, dword [esp + 0x10]
je 0x42cd76
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
sub esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
test ebx, ebx
jne 0x42ce11
cmp dword [ebp + 0x18], 0
je 0x42ce11
mov edx, dword [esp + 0x54]
mov ebx, edx
cmp edx, dword [ebp + 0x1c]
jb 0x42cd9e
mov ebx, dword [ebp + 0x1c]
cmp dword [esp + 0x10], 0
je 0x42cdd0
mov eax, dword [esp + 0x10]
mov esi, dword [edi + 0x30]
cdq
push edx
push eax
mov edx, 1
mov eax, edi
call fcn.00404a60
add esp, 8
test eax, eax
jne 0x42cdc8
mov dword [esp + 0x10], eax
jmp 0x42cdd0
mov dword [esp + 0xc], 0xffffffff
mov esi, dword [esp + 0x54]
test esi, esi
je 0x42ce07
cmp dword [ebp + 0x1c], 0
jbe 0x42ce07
mov eax, dword [ebp + 0x18]
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x1c]
push ebx
push eax
mov eax, dword [edi + 4]
push ecx
push edx
call eax
add esp, 0x10
xor ecx, ecx
cmp eax, ebx
jne 0x42cdff
xor eax, eax
cmp ecx, eax
je 0x42ce07
mov dword [esp + 0xc], 0xffffffff
mov ecx, esi
sub ecx, ebx
add dword [esp + 0x10], ecx
jmp 0x42ce1b
mov edx, dword [esp + 0x54]
add dword [esp + 0x10], edx
mov esi, edx
cmp dword [esp + 0xc], 0
jne 0x42d06d
test esi, esi
je 0x42cfb6
sub dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
je 0x42ce61
mov eax, dword [esp + 0x10]
mov esi, dword [edi + 0x30]
cdq
push edx
push eax
mov edx, 1
mov eax, edi
call fcn.00404a60
add esp, 8
test eax, eax
jne 0x42cf41
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0xc]
cmp dword [esp + 0x54], 0
jbe 0x42cfae
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42ce88
or ebx, 0xffffffff
mov eax, dword [edi + 0x30]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.0042ba00
add esp, 8
test eax, eax
je 0x42cea0
or ebx, 0xffffffff
cmp dword [esp + 0x18], 1
mov esi, dword [esp + 0xc]
jne 0x42cf4d
cmp dword [esp + 0x48], 0xffffffff
jne 0x42ced7
cmp dword [esp + 0x4c], 0
jne 0x42ced7
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x48]
push ecx
push edx
mov eax, edi
call fcn.0042bbc0
add esp, 8
test eax, eax
je 0x42ced7
or ebx, 0xffffffff
or esi, 0xffffffff
cmp dword [esp + 0x40], esi
jne 0x42cf00
cmp dword [esp + 0x44], 0
jne 0x42cf00
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x40]
push eax
push ecx
mov eax, edi
call fcn.0042bbc0
add esp, 8
test eax, eax
je 0x42cf00
mov ebx, esi
cmp dword [esp + 0x20], esi
jne 0x42cf26
cmp dword [esp + 0x24], 0
jne 0x42cf26
mov eax, dword [edi + 0x30]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, edi
call fcn.0042bbc0
add esp, 8
test eax, eax
je 0x42cf26
mov ebx, esi
cmp dword [esp + 0x5c], esi
jne 0x42cf90
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov esi, edi
call fcn.0042baa0
add esp, 8
jmp 0x42cf89
or ebx, 0xffffffff
mov dword [esp + 0xc], ebx
jmp 0x42ce65
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x30]
xor edx, edx
test eax, eax
je 0x42cf69
push 1
push edx
push esi
push ecx
mov ecx, dword [edi + 0x1c]
push ecx
call eax
add esp, 0x14
jmp 0x42cf89
xor eax, eax
cmp dword [esp + 0xc], esi
jne 0x42cf8d
cmp eax, edx
jne 0x42cf8d
mov edx, dword [esp + 0xc]
mov eax, dword [edi + 0x1c]
push 1
push edx
push ecx
mov ecx, dword [edi + 0x28]
push eax
call ecx
add esp, 0x10
test eax, eax
je 0x42cf90
or ebx, 0xffffffff
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
lea eax, [edx + eax + 4]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x54]
jb 0x42ce70
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x42d06d
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x42d047
mov ebx, dword [esp + 0x58]
mov eax, dword [ebp + 0x24]
cmp ebx, eax
jae 0x42cfd6
mov byte [ebx + ecx], 0
mov dword [esp + 0x14], ebx
jmp 0x42cfda
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0
je 0x42d006
mov eax, dword [esp + 0x10]
mov esi, dword [edi + 0x30]
cdq
push edx
push eax
mov edx, 1
mov eax, edi
call fcn.00404a60
add esp, 8
test eax, eax
je 0x42d006
mov dword [esp + 0xc], 0xffffffff
test ebx, ebx
je 0x42d040
cmp dword [ebp + 0x24], 0
jbe 0x42d040
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x20]
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x1c]
push esi
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
call ecx
add esp, 0x10
cmp eax, esi
je 0x42d040
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 0
jne 0x42d06d
mov edi, dword [ebp + 8]
test edi, edi
je 0x42d059
mov ecx, 0x16
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42d06d
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret