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

Disassembly:
sub esp, 0x38
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41d7dd
push eax
call dword [0x509054]
add esp, 4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 9], 0
je 0x41d7f8
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x41d7f8
push eax
call fcn.00423a60
add esp, 4
mov ecx, dword [ebp]
test ecx, ecx
je 0x41d813
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x41d813
push eax
call dword [0x509054]
mov ecx, dword [ebp]
add esp, 4
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x41d828
cmp esi, 5
je 0x41d828
cmp esi, 6
jne 0x41dd96
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x30], 0
push ebx
push edi
mov esi, dword [edx + 4]
mov edi, dword [ebp + 4]
mov eax, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x41d85b
cmp byte [esi + 0x14], 2
jne 0x41d85b
mov esi, 5
jmp 0x41d8a9
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x41d88e
push 2
push edi
call fcn.0044b300
mov esi, eax
add esp, 8
test esi, esi
jne 0x41d8a9
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 1
push eax
push 1
push dword [ebp + 4]
call fcn.0044c260
mov edx, dword [ebp + 0x18]
add esp, 0xc
cmp byte [edx + 8], 0
jne 0x41d8a9
push 0
push edx
call fcn.0044b300
add esp, 8
mov dword [esp + 0x38], 1
mov esi, eax
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 4]
mov eax, dword [ebp + 4]
mov edx, dword [edi + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
mov al, byte [eax + 5]
mov byte [esp + 0x4c], al
test esi, esi
jne 0x41d8de
cmp al, 5
jne 0x41d8de
cmp edx, ecx
mov eax, 8
cmovne esi, eax
mov edi, dword [edi + 0x2c]
xor eax, eax
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x41d8f7
cmp eax, ecx
jge 0x41d95d
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
ja 0x41d95d
test esi, esi
jne 0x41d998
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x509110]
div dword [ecx + 0x20]
inc eax
cmp ebx, eax
je 0x41d953
push 2
lea eax, [esp + 0x38]
push eax
push ebx
push dword [esp + 0x30]
call fcn.00462b70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41d953
mov edi, dword [esp + 0x34]
push eax
push dword [edi + 4]
push ebx
push ebp
call fcn.00421340
push edi
mov esi, eax
call fcn.00464ae0
mov edi, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x1c]
inc dword [ebp + 0x10]
inc eax
jmp 0x41d8e7
test esi, esi
jne 0x41d998
mov eax, edi
mov dword [ebp + 0x24], edi
sub eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x10], edi
ja 0x41d9a1
cmp dword [ebp + 0x28], esi
jne 0x41dd62
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [ebp + 0x2c], eax
mov dword [ecx + 0x58], ebp
mov dword [ebp + 0x28], 1
jmp 0x41dd62
cmp esi, 0x65
jne 0x41dd62
test edi, edi
jne 0x41da02
mov edi, dword [ebp + 4]
cmp byte [edi + 9], 0
je 0x41d9c0
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x41d9c0
push edi
call fcn.00423a60
add esp, 4
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
push dword [edi + 4]
call fcn.0043b8f0
add esp, 4
mov esi, eax
cmp byte [edi + 9], 0
je 0x41d9ec
add dword [edi + 0xc], 0xffffffff
jne 0x41d9ec
push edi
call fcn.00486180
add esp, 4
mov edi, 1
mov dword [esp + 0x18], edi
test esi, esi
je 0x41da02
cmp esi, 0x65
jne 0x41dd62
mov eax, dword [ebp + 8]
inc eax
push eax
push 1
push dword [ebp + 4]
call fcn.0044e280
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41dd62
mov eax, dword [ebp]
test eax, eax
je 0x41da2e
push eax
call fcn.0046a7d0
add esp, 4
cmp byte [esp + 0x4c], 5
jne 0x41da4c
push 2
push dword [ebp + 4]
call fcn.0044e060
mov esi, eax
add esp, 8
test esi, esi
jne 0x41dd62
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
cmp ebx, ecx
jge 0x41dd28
mov eax, ecx
cdq
idiv ebx
mov ecx, eax
lea eax, [ecx - 1]
add eax, edi
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x18]
imul ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], edx
xor edx, edx
mov ebx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x30], ebx
lea ebx, [edi - 1]
mov ecx, dword [eax + 4]
mov eax, dword [0x509110]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
cmovne ebx, edi
cmp ebx, dword [esp + 0x2c]
ja 0x41db12
mov eax, dword [ebp + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x509110]
div dword [ecx + 0x20]
inc eax
cmp ebx, eax
je 0x41db0b
push 0
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x1c]
call fcn.00462b70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41db0b
mov edi, dword [esp + 0x28]
push edi
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
jbe 0x41daf8
call fcn.0043d790
jmp 0x41dafd
call fcn.0043e930
add esp, 4
mov esi, eax
push edi
call fcn.00464ae0
add esp, 4
inc ebx
test esi, esi
je 0x41daa6
jmp 0x41db27
test esi, esi
jne 0x41db27
push 1
push esi
push dword [esp + 0x18]
call fcn.00463460
add esp, 0xc
mov esi, eax
mov eax, dword [0x509110]
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
cmp eax, ecx
jg 0x41db51
jl 0x41db5f
mov eax, dword [esp + 0x4c]
cmp ebx, eax
jae 0x41db55
jmp 0x41db5f
mov eax, dword [esp + 0x4c]
mov ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [0x509110]
add eax, dword [esp + 0x14]
cdq
mov dword [esp + 0x28], eax
mov edi, eax
mov dword [esp + 0x1c], edx
mov ecx, edx
test esi, esi
jne 0x41dd62
mov eax, dword [esp + 0x14]
cdq
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
lea ebx, [ebx]
cmp ecx, dword [esp + 0x20]
jg 0x41dc9b
jl 0x41dba4
cmp edi, ebx
jae 0x41dc9b
push 0
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push esi
push edx
push eax
push ecx
push edi
call fcn.004bfb60
inc eax
push eax
push dword [esp + 0x30]
call fcn.00462b70
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41dbf1
push dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
push edi
push dword [esp + 0x1c]
mov eax, dword [edx]
push dword [ecx + 4]
push edx
mov eax, dword [eax + 0xc]
call eax
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41dc72
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0x18], ebx
je 0x41dc4e
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x18]
mov edi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004bfcf0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov edi, dword [esp + 0x28]
jmp 0x41dc57
push ecx
call fcn.00465650
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x41dc72
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x41dc72
push ebx
call fcn.0043d640
add esp, 4
mov eax, dword [esp + 0x3c]
add edi, eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
adc ecx, edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x41db90
jmp 0x41dd62
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push ecx
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x41dd62
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x44], ecx
jl 0x41dce1
jg 0x41dccf
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x40], eax
jbe 0x41dce1
mov eax, dword [ebx]
push ecx
push dword [esp + 0x50]
mov eax, dword [eax + 0x10]
push ebx
call eax
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x41dd62
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x41dd0d
push esi
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
mov esi, eax
add esp, 0xc
cmp esi, 0xc
jne 0x41dd09
xor esi, esi
jmp 0x41dd0d
test esi, esi
jne 0x41dd62
cmp byte [ebx + 7], 0
jne 0x41dd46
mov eax, dword [ebx + 0x3c]
movzx edx, byte [ebx + 0xb]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
add esp, 8
jmp 0x41dd44
mov eax, ebx
cdq
idiv ecx
mov ecx, dword [esp + 0x10]
imul eax, edi
push 0
push 0
push ecx
mov dword [ecx + 0x18], eax
call fcn.00463460
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x41dd62
push esi
push dword [ebp + 4]
call fcn.0044bb10
mov esi, eax
add esp, 8
test esi, esi
mov eax, 0x65
cmove esi, eax
cmp dword [esp + 0x38], 0
pop edi
pop ebx
je 0x41dd82
push 0
push dword [ebp + 0x18]
call fcn.0044ba70
push 0
push dword [ebp + 0x18]
call fcn.0044bb10
add esp, 0x10
mov ecx, dword [ebp]
cmp esi, 0xc0a
mov eax, 7
cmove esi, eax
mov dword [ebp + 0x1c], esi
test ecx, ecx
je 0x41ddab
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x41ddab
push eax
call dword [0x50905c]
add esp, 4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 9], 0
je 0x41ddc3
add dword [eax + 0xc], 0xffffffff
jne 0x41ddc3
push eax
call fcn.00486180
add esp, 4
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x41ddd7
push ecx
call dword [0x50905c]
add esp, 4
mov eax, esi
pop esi
pop ebp
add esp, 0x38
ret