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

Disassembly:
mov ecx, dword [0xbd5718]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x415fa6
sub esp, 0x84
mov eax, dword [0xbd5718]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov ecx, dword [0xbd5718]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x18]
cmp dword [eax], ecx
je 0x41593e
mov edx, dword [eax + 0x7c]
cmp edx, 1
jg 0x41593e
mov ebx, dword [eax + 0x78]
test ebx, ebx
jne 0x41593e
lea ebx, [edx - 1]
nop
mov dword [eax + 0x7c], ebx
cmp edx, 1
jne 0x415963
movzx eax, byte [ecx + 0x69]
test al, al
je 0x415963
mov dword [ecx + 8], 0xfffffade
jmp 0x415963
mov edx, dword [eax + 0x7c]
lea ebx, [edx - 1]
nop
mov dword [eax + 0x7c], ebx
cmp edx, 1
jne 0x41595c
movzx eax, byte [ecx + 0x69]
test al, al
je 0x41595c
mov dword [ecx + 8], 0xfffffade
add esp, 0x84
ret
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x90]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0xc], ebx
call fcn.00415760
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4159a0
xor eax, eax
jmp 0x4159ac
call fcn.00423d20
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x415963
nop
lea eax, [0xbb6438]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.0044b6a0
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x90]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0xc], ebx
call fcn.00415760
movzx eax, byte [esp + 0x10]
test al, al
je 0x415b0f
mov eax, dword [0xbd5de0]
cmp eax, 1
jne 0x415a28
mov eax, 1
jmp 0x415a36
cmp eax, 2
jne 0x415a34
mov eax, 2
jmp 0x415a36
xor eax, eax
mov dword [esp + 0x4c], eax
lea ecx, [0xb693ac]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.0044b6a0
nop
lea eax, [0xb693a8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.0044b6a0
mov eax, dword [esp + 0x88]
cmp eax, 2
sete cl
mov byte [0xbb6448], cl
movzx ecx, byte [0xbb7490]
test cl, cl
jne 0x415aaf
xor ecx, ecx
xor edx, edx
jmp 0x415ac4
call fcn.0045d070
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, eax
mov eax, dword [esp + 0x88]
test ecx, ecx
je 0x415af7
mov dword [esp + 0x20], ecx
mov dword [esp + 0x60], edx
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0045d500
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.0045d1a0
mov eax, dword [esp + 0x88]
mov ecx, dword [0xbb5018]
mov dword [esp + 0x6c], ecx
mov edx, dword [0xbb501c]
mov dword [esp + 0x5c], edx
xor ebx, ebx
jmp 0x415b48
nop
lea eax, [0xbb6438]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0044ba00
add esp, 0x84
ret
mov ebp, dword [esp + 0x58]
lea ebx, [ebp + 1]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
cmp ebx, edx
jge 0x415b7d
mov dword [esp + 0x58], ebx
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x64], eax
mov edx, dword [eax + 0x30]
test byte [edx], al
add edx, 0x24c
mov dword [esp], edx
call fcn.00476e70
mov eax, dword [0xbbd690]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x415b32
jmp 0x415ef1
call fcn.00417ad0
lea eax, [0x8979b8]
mov dword [esp], eax
call fcn.00470cd0
mov eax, dword [0xbd567c]
mov dword [0xbb646c], eax
mov dword [0xbb6470], eax
mov ecx, dword [0xbd5680]
cmp ecx, eax
jge 0x415bb2
mov dword [0xbb646c], ecx
lea eax, [0xbd67a8]
mov dword [esp], eax
call fcn.004770f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0xbb649c], eax
mov dword [0xbb64a0], ecx
mov dword [0xbb6494], 0
mov dword [0xbb6498], 0
mov eax, dword [esp + 0x4c]
mov dword [0xbb6444], eax
call fcn.00472f90
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [0xbb6474], eax
mov dword [0xbb6478], ecx
lea edi, [esp + 0x28]
xor eax, eax
call fcn.00472469
lea eax, [0x416070]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x7c]
mov dword [esp], ecx
call fcn.00470cd0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0xbb64cc]
mov ebx, dword [0xbb64d0]
add edx, eax
mov dword [0xbb64cc], edx
adc ebx, ecx
mov dword [0xbb64d0], ebx
mov edx, dword [0xbb64d4]
mov ebx, dword [0xbb64d8]
add eax, edx
mov dword [0xbb64d4], eax
adc ebx, ecx
mov dword [0xbb64d8], ebx
lea eax, [0x8979c0]
mov dword [esp], eax
call fcn.00470cd0
call fcn.00418c00
nop
lea eax, [0xbb6468]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00476ff0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [0xbd567c]
lea ebx, [0xbd6740]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x1c], eax
call fcn.0041dde0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
lea edx, [0xbd5d60]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.004191e0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x415d30
mov byte [esp], 0
call fcn.004463f0
nop
lea eax, [0xbd55f8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004770c0
mov eax, dword [0xbd55f8]
cmp eax, 1
jne 0x415d59
mov eax, 1
jmp 0x415d5f
cmp eax, 2
sete al
mov byte [0xbd5a38], al
nop
mov dword [0xbb63f8], 0xffffffff
mov dword [0xbb6404], 0xffffffff
call fcn.00419f40
call fcn.0041dc90
lea eax, [0xbd55fc]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004770c0
mov eax, dword [0xbd5718]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x68], eax
call fcn.00472f90
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [0xbb6470]
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
mov esi, edx
sar edx, 0x1f
mov edi, dword [0xbb64cc]
mov dword [esp + 0x54], edi
mov edi, dword [0xbb64d0]
sub ebx, eax
sbb ebp, ecx
mov eax, ebx
mov ecx, edx
mul esi
imul ebx, ecx
imul ebp, esi
lea ecx, [ebp + edx]
add ecx, ebx
mov edx, dword [esp + 0x54]
add edx, eax
mov dword [0xbb64cc], edx
adc edi, ecx
mov dword [0xbb64d0], edi
mov edx, dword [0xbb64d4]
mov ebx, dword [0xbb64d8]
add eax, edx
mov dword [0xbb64d4], eax
adc ebx, ecx
mov dword [0xbb64d8], ebx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x415fb0]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.00470cd0
nop
lea eax, [0xb693a8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0044ba00
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x7c]
lea edx, [ecx - 1]
nop
mov ebx, dword [0xbd5718]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
mov dword [eax + 0x7c], edx
cmp ecx, 1
jne 0x415eb7
movzx eax, byte [ebx + 0x69]
test al, al
je 0x415eaf
mov dword [ebx + 8], 0xfffffade
mov eax, dword [esp + 0x4c]
test eax, eax
jmp 0x415ebd
mov eax, dword [esp + 0x4c]
test eax, eax
jmp 0x415ebd
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x415ece
nop
lea eax, [0x8979d0]
mov dword [esp], eax
call fcn.00470c70
nop
lea eax, [0xbb6438]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0044ba00
add esp, 0x84
ret
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
call fcn.00438710
lea eax, [0x8730f4]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00438f70
mov eax, dword [esp + 0x50]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.00438d90
lea eax, [0x872638]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00438f70
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438c60
lea eax, [0x8749e3]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00438f70
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00438c60
call fcn.00438910
call fcn.00438770
lea eax, [0x879569]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0046bb40
nop
call fcn.00470dc0
jmp fcn.004158d0