Function at 0x41d8f0
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 0x41d90d
push eax
call dword [0x50a054]
add esp, 4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 9], 0
je 0x41d928
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x41d928
push eax
call fcn.00423b80
add esp, 4
mov ecx, dword [ebp]
test ecx, ecx
je 0x41d943
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x41d943
push eax
call dword [0x50a054]
mov ecx, dword [ebp]
add esp, 4
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x41d958
cmp esi, 5
je 0x41d958
cmp esi, 6
jne 0x41dec6
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 0x41d98b
cmp byte [esi + 0x14], 2
jne 0x41d98b
mov esi, 5
jmp 0x41d9d9
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x41d9be
push 2
push edi
call fcn.0044b480
mov esi, eax
add esp, 8
test esi, esi
jne 0x41d9d9
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 1
push eax
push 1
push dword [ebp + 4]
call fcn.0044c3f0
mov edx, dword [ebp + 0x18]
add esp, 0xc
cmp byte [edx + 8], 0
jne 0x41d9d9
push 0
push edx
call fcn.0044b480
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 0x41da0e
cmp al, 5
jne 0x41da0e
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 0x41da27
cmp eax, ecx
jge 0x41da8d
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
ja 0x41da8d
test esi, esi
jne 0x41dac8
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x50a110]
div dword [ecx + 0x20]
inc eax
cmp ebx, eax
je 0x41da83
push 2
lea eax, [esp + 0x38]
push eax
push ebx
push dword [esp + 0x30]
call fcn.00462d80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41da83
mov edi, dword [esp + 0x34]
push eax
push dword [edi + 4]
push ebx
push ebp
call fcn.00421460
push edi
mov esi, eax
call fcn.00464ce0
mov edi, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x1c]
inc dword [ebp + 0x10]
inc eax
jmp 0x41da17
test esi, esi
jne 0x41dac8
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 0x41dad1
cmp dword [ebp + 0x28], esi
jne 0x41de92
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 0x41de92
cmp esi, 0x65
jne 0x41de92
test edi, edi
jne 0x41db32
mov edi, dword [ebp + 4]
cmp byte [edi + 9], 0
je 0x41daf0
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x41daf0
push edi
call fcn.00423b80
add esp, 4
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
push dword [edi + 4]
call fcn.0043ba50
add esp, 4
mov esi, eax
cmp byte [edi + 9], 0
je 0x41db1c
add dword [edi + 0xc], 0xffffffff
jne 0x41db1c
push edi
call fcn.00486170
add esp, 4
mov edi, 1
mov dword [esp + 0x18], edi
test esi, esi
je 0x41db32
cmp esi, 0x65
jne 0x41de92
mov eax, dword [ebp + 8]
inc eax
push eax
push 1
push dword [ebp + 4]
call fcn.0044e410
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41de92
mov eax, dword [ebp]
test eax, eax
je 0x41db5e
push eax
call fcn.0046a9e0
add esp, 4
cmp byte [esp + 0x4c], 5
jne 0x41db7c
push 2
push dword [ebp + 4]
call fcn.0044e1f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41de92
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
cmp ebx, ecx
jge 0x41de58
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 [0x50a110]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
cmovne ebx, edi
cmp ebx, dword [esp + 0x2c]
ja 0x41dc42
mov eax, dword [ebp + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x50a110]
div dword [ecx + 0x20]
inc eax
cmp ebx, eax
je 0x41dc3b
push 0
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x1c]
call fcn.00462d80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41dc3b
mov edi, dword [esp + 0x28]
push edi
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
jbe 0x41dc28
call fcn.0043d8f0
jmp 0x41dc2d
call fcn.0043ea90
add esp, 4
mov esi, eax
push edi
call fcn.00464ce0
add esp, 4
inc ebx
test esi, esi
je 0x41dbd6
jmp 0x41dc57
test esi, esi
jne 0x41dc57
push 1
push esi
push dword [esp + 0x18]
call fcn.00463670
add esp, 0xc
mov esi, eax
mov eax, dword [0x50a110]
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 0x41dc81
jl 0x41dc8f
mov eax, dword [esp + 0x4c]
cmp ebx, eax
jae 0x41dc85
jmp 0x41dc8f
mov eax, dword [esp + 0x4c]
mov ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [0x50a110]
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 0x41de92
mov eax, dword [esp + 0x14]
cdq
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
nop word [eax + eax]
cmp ecx, dword [esp + 0x20]
jg 0x41ddcb
jl 0x41dcd4
cmp edi, ebx
jae 0x41ddcb
push 0
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push esi
push edx
push eax
push ecx
push edi
call fcn.004bf920
inc eax
push eax
push dword [esp + 0x30]
call fcn.00462d80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41dd21
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 0x41dda2
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0x18], ebx
je 0x41dd7e
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.004bfab0
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 0x41dd87
push ecx
call fcn.00465860
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x41dda2
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x41dda2
push ebx
call fcn.0043d7a0
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 0x41dcc0
jmp 0x41de92
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 0x41de92
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x44], ecx
jl 0x41de11
jg 0x41ddff
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x40], eax
jbe 0x41de11
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 0x41de92
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x41de3d
push esi
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
mov esi, eax
add esp, 0xc
cmp esi, 0xc
jne 0x41de39
xor esi, esi
jmp 0x41de3d
test esi, esi
jne 0x41de92
cmp byte [ebx + 7], 0
jne 0x41de76
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 0x41de74
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.00463670
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x41de92
push esi
push dword [ebp + 4]
call fcn.0044bc90
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 0x41deb2
push 0
push dword [ebp + 0x18]
call fcn.0044bbf0
push 0
push dword [ebp + 0x18]
call fcn.0044bc90
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 0x41dedb
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x41dedb
push eax
call dword [0x50a05c]
add esp, 4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 9], 0
je 0x41def3
add dword [eax + 0xc], 0xffffffff
jne 0x41def3
push eax
call fcn.00486170
add esp, 4
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x41df07
push ecx
call dword [0x50a05c]
add esp, 4
mov eax, esi
pop esi
pop ebp
add esp, 0x38
ret