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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov ebx, ecx
lea ecx, [esp + 0x74]
push edi
call fcn.0041284c
lea ecx, [esp + 0x54]
call fcn.0040f810
mov eax, dword [ebx + 8]
xor edi, edi
mov dword [esp + 0x14], edi
mov ecx, ebx
mov edi, dword [ebp + 0x14]
add edi, dword [ebp + 0xc]
mov eax, dword [eax + 0x13c]
push 0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
pop esi
adc esi, dword [ebp + 0x10]
push eax
call fcn.0041fed6
push esi
push edi
push dword [eax + 4]
push dword [eax]
call fcn.0041fd26
mov edi, dword [ebp + 0x14]
test al, al
je 0x41dcc8
push dword [ebp + 0x1c]
mov eax, dword [ebx]
mov edx, edi
add edx, dword [ebp + 0xc]
push 0
pop ecx
adc ecx, dword [ebp + 0x10]
mov esi, dword [eax + 0x14]
push ecx
push edx
mov ecx, esi
call dword [0x488254]
mov ecx, ebx
call esi
test al, al
je 0x41dd1f
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
call fcn.0041fd26
test al, al
je 0x41dd3d
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + 0x38]
mov dword [esp + 0xc], eax
mov eax, ecx
sub eax, esi
mov dword [esp + 0x40], eax
mov eax, edx
sbb eax, dword [esp + 0xc]
jne 0x41dd1f
push dword [esp + 0xc]
mov dword [ebx + 0x38], ecx
mov ecx, ebx
push esi
push dword [esp + 0x48]
mov dword [ebx + 0x3c], edx
push 0
call fcn.0041e1e9
test al, al
jne 0x41dd3a
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], eax
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x54]
call fcn.0040f855
mov al, byte [esp + 0x40]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x40], 1
test eax, eax
je 0x41ddb2
push edi
push dword [ebp + 8]
add eax, ecx
push eax
call fcn.0048340f
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add ecx, edi
mov dword [ebp + 0xc], ecx
adc edx, 0
mov dword [ebp + 0x10], edx
mov esi, dword [esp + 0x14]
push edx
push ecx
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
call fcn.0041fd26
test al, al
je 0x41dd87
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], edx
push edx
push ecx
push dword [ebx + 0x34]
push dword [ebx + 0x30]
call fcn.0041fd26
test al, al
je 0x41dd9e
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x34], edx
cmp esi, edi
je 0x41dda6
mov byte [ebx + 0x53], 1
mov eax, dword [ebp + 0x18]
sub edi, esi
mov dword [eax], edi
jmp 0x41dd24
cmp dword [ebx + 0x44], 0
je 0x41dd1f
mov dword [esp + 0x14], edi
mov edi, dword [ebx + 8]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
mov ecx, dword [ebx + 0xc]
and dword [esp + 0x44], 0
and dword [esp + 0x38], 0
mov edi, dword [ebp + 0x14]
imul ecx, eax
mov dword [esp + 0x10], eax
dec eax
mov edx, eax
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0xc]
and edx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x10]
and eax, edx
mov dword [esp + 0x6c], eax
test edi, edi
je 0x41dd6c
push 0
push dword [esp + 0x1c]
push edx
push ecx
call fcn.004833d3
mov ecx, eax
mov esi, edx
mov eax, dword [ebx + 0xc]
push esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], esi
call fcn.004833df
push 0
push dword [esp + 0x14]
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004833d3
push dword [esp + 0x1c]
mov ecx, dword [ebx + 0x44]
sub eax, esi
push dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00424910
test al, al
je 0x41e179
cmp dword [esp + 0x6c], 0
jne 0x41de90
mov eax, dword [esp + 0x68]
cmp eax, 0x20
jbe 0x41de93
push 0x20
pop eax
mov ecx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x18]
add ecx, dword [esp + 0xc]
sub eax, ecx
cmp esi, eax
jbe 0x41dead
mov edi, eax
push ecx
push ecx
mov eax, esp
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
mov edx, dword [esp + 0x3c]
push edx
push dword [esp + 0x3c]
call fcn.0040abeb
test al, al
je 0x41e045
cmp dword [ebp + 0x1c], 0
je 0x41dd1f
lea eax, [ecx - 1]
and dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x18]
add eax, edi
add eax, ecx
xor edx, edx
neg ecx
and eax, ecx
mov ecx, dword [esp + 0x60]
div dword [esp + 0x18]
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x41df08
call fcn.0040b1df
and dword [esp + 0x60], 0
push dword [ebx + 0xc]
and dword [esp + 0x68], 0
push ecx
push ecx
mov eax, esp
lea ecx, [esp + 0x84]
and dword [eax], 0
and dword [eax + 4], 0
lea eax, [esp + 0x60]
push dword [ebx + 8]
push eax
call fcn.004128ad
test al, al
je 0x41dd1f
push dword [esp + 0x18]
push 0
push dword [esp + 0x6c]
call fcn.0048341b
add esp, 0xc
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
push ecx
push dword [esp + 0x4c]
push ecx
push eax
call fcn.0040ac51
inc ecx
test al, al
je 0x41e03e
push ecx
push ecx
mov eax, esp
push dword [esp + 0x40]
push dword [esp + 0x50]
and dword [eax + 4], 0
mov dword [eax], ecx
lea eax, [esp + 0x40]
push ecx
mov ecx, dword [ebp + 0x1c]
push eax
call fcn.00438af3
test al, al
je 0x41dd1f
push ecx
push ecx
mov eax, esp
and dword [eax + 4], 0
mov dword [eax], 1
push dword [esp + 0x3c]
mov ecx, dword [ebx + 0x44]
push dword [esp + 0x3c]
push dword [esp + 0x2c]
push dword [esp + 0x34]
call fcn.00424443
test al, al
je 0x41dd1f
push dword [esp + 0x34]
mov eax, dword [ebx + 0xc]
push dword [esp + 0x34]
cdq
push edx
push eax
call fcn.004833df
lea ecx, [esp + 0x78]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
call fcn.004129e0
test al, al
je 0x41dd1f
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov esi, dword [esp + 0x28]
inc ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x38], edx
push 0
push dword [esp + 0x4c]
adc esi, 0
mov dword [esp + 0x2c], eax
add dword [esp + 0x28], ecx
push esi
adc dword [esp + 0x28], 0
push eax
mov dword [esp + 0x38], esi
call fcn.0040ac51
mov esi, dword [esp + 0x14]
test al, al
jne 0x41df6a
jmp 0x41e042
mov edx, dword [esp + 0x34]
mov byte [ebx + 0x53], cl
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x38], edx
push dword [esp + 0x38]
cdq
push ecx
push edx
push eax
mov dword [esp + 0x54], ecx
call fcn.004833df
add eax, dword [esp + 0x2c]
mov ecx, edx
mov dword [esp + 0x28], eax
mov eax, edi
adc ecx, 0
xor edx, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
div ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x41e09f
mov ecx, eax
imul ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x41e12c
mov ecx, dword [esp + 0x10]
dec ecx
and dword [esp + 0x5c], 0
lea eax, [edi + edx]
xor edx, edx
add eax, ecx
mov ecx, dword [esp + 0x70]
not ecx
and eax, ecx
mov ecx, dword [esp + 0x60]
div dword [esp + 0x10]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x41e0d2
call fcn.0040b1df
and dword [esp + 0x60], 0
mov eax, dword [esp + 0x2c]
and dword [esp + 0x64], 0
lea ecx, [esp + 0x78]
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0x5c]
push dword [esp + 0x30]
push dword [ebx + 8]
push eax
call fcn.004128ad
test al, al
je 0x41dd1f
lea ecx, [esp + 0x78]
call fcn.00412930
test al, al
je 0x41dd1f
mov eax, dword [esp + 0x64]
add eax, dword [esp + 0xc]
push edi
push dword [esp + 0x40]
push eax
call fcn.0048340f
mov eax, dword [esp + 0x70]
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push dword [esp + 0x48]
mov ecx, dword [ebx + 8]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
call fcn.004095e4
test al, al
je 0x41dd1f
mov ecx, dword [ebp + 0xc]
sub esi, edi
add dword [esp + 0x3c], edi
add ecx, edi
mov edx, dword [ebp + 0x10]
adc edx, 0
mov dword [esp + 0x14], esi
and dword [esp + 0xc], 0
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
test esi, esi
jne 0x41de19
mov edi, dword [ebp + 0x14]
jmp 0x41dd70
mov eax, dword [esp + 0x74]
test eax, eax
je 0x41dd1f
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [ebx + 0x10]
push 0x403c24
push 0x69ad
push eax
call fcn.0040f251
add esp, 0x18
jmp 0x41dd1f