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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46cbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x487550]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
push 1
mov ebx, 0xf
xor esi, esi
push 0x478ef0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
call fcn.00403b10
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x90], esi
call fcn.0042d4d0
add esp, 8
mov byte [esp + 0x88], 2
cmp dword [esp + 0x5c], 0x10
jb 0x41432b
mov edx, dword [esp + 0x48]
push edx
call fcn.0044caf8
add esp, 4
mov edi, dword [esp + 0x24]
mov ecx, edi
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], esi
mov byte [esp + 0x48], 0
cmp eax, 3
jae 0x41439c
cmp dword [esp + 0x20], esi
je 0x41437e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push ecx
call fcn.004157f0
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.0044caf8
add esp, 4
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.0044caf8
add esp, 4
jmp 0x4145e1
push 1
push 0x478ef4
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], esi
mov byte [esp + 0x6c], 0
call fcn.00403b10
mov byte [esp + 0x88], 3
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 1
ja 0x4143e9
call fcn.0044cae8
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x30]
add ecx, 0x1c
push eax
call fcn.0042d4d0
add esp, 8
mov byte [esp + 0x88], 5
cmp dword [esp + 0x78], 0x10
jb 0x41441e
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0044caf8
add esp, 4
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], esi
mov byte [esp + 0x64], 0
cmp eax, 1
jne 0x414466
push 0xffffffffffffffff
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.004038f0
mov edx, 0x50
mov word [edi + 0x1c], dx
jmp 0x4144b2
cmp eax, 2
jne 0x4145cf
push 0xffffffffffffffff
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.004038f0
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4144a2
call fcn.0044cae8
mov eax, dword [esp + 0x38]
add eax, 0x1c
call fcn.0042db70
mov word [edi + 0x1c], ax
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
mov edi, 2
add ebx, edx
cmp ebx, edi
jbe 0x414537
mov esi, dword [ebp + 0xc]
add esi, 0x20
mov dword [esp + 0x10], 0x38
push 1
push 0x478ef0
mov eax, esi
call fcn.0040c4b0
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x414516
call fcn.0044cae8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
add edx, eax
push 0
push edx
or eax, 0xffffffff
call fcn.0040c5c0
add dword [esp + 0x10], 0x1c
inc edi
cmp edi, ebx
jb 0x4144e4
xor esi, esi
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x41455d
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
push ecx
call fcn.004157f0
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call fcn.0044caf8
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.0044caf8
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, esi
je 0x41459c
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
push ecx
call fcn.004157f0
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.0044caf8
add esp, 4
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.0044caf8
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [esp + 0x2c]
call fcn.00415470
lea esi, [esp + 0x14]
call fcn.00415470
xor al, al
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8