Function at 0x41d729
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.004166e7
lea ecx, [esp + 0x54]
call fcn.004180a8
mov edi, dword [ebp + 0x14]
xor eax, eax
add edi, dword [ebp + 0xc]
mov ecx, ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
push 0
pop esi
adc esi, dword [ebp + 0x10]
mov eax, dword [eax + 0x154]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x68]
push eax
call fcn.0041f2c5
push esi
push edi
push dword [eax + 4]
push dword [eax]
call fcn.0041f22b
mov edi, dword [ebp + 0x14]
test al, al
je 0x41d7a7
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]
push ecx
push edx
mov ecx, ebx
call dword [eax + 0x10]
test al, al
je 0x41d7ff
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
call fcn.0041f22b
test al, al
je 0x41d81d
mov ecx, dword [ebp + 0x10]
mov edx, esi
sub edx, dword [ebx + 0x38]
mov eax, ecx
sbb eax, dword [ebx + 0x3c]
jne 0x41d7ff
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebx + 0x38], esi
mov esi, edi
push esi
push eax
push edx
mov dword [ebx + 0x3c], ecx
mov ecx, ebx
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], edi
call fcn.0041dccb
mov edi, dword [ebp + 0x14]
test al, al
jne 0x41d81a
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], esi
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x54]
call fcn.004180f3
mov al, byte [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x38], 1
test eax, eax
je 0x41d895
push edi
push dword [ebp + 8]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
mov esi, dword [ebp + 0xc]
add esp, 0xc
add esi, edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
adc edi, 0
mov dword [ebp + 0x10], edi
push edi
push esi
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
call fcn.0041f22b
test al, al
je 0x41d863
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], edi
push edi
push esi
push dword [ebx + 0x34]
push dword [ebx + 0x30]
call fcn.0041f22b
test al, al
je 0x41d87a
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], edi
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
cmp eax, ecx
je 0x41d889
mov byte [ebx + 0x53], 1
sub ecx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
jmp 0x41d804
cmp dword [ebx + 0x44], 0
je 0x41d7ff
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], edi
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebx + 0xc]
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
imul ecx, eax
mov dword [esp + 0x18], eax
dec eax
mov dword [esp + 0x74], eax
and eax, esi
mov dword [esp + 0x30], eax
xor eax, eax
and eax, edi
mov dword [esp + 0x34], edx
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x6c], eax
je 0x41d84c
push 0
push ecx
push edi
push esi
call sub.ntdll.dll__alldiv
mov ecx, eax
mov esi, edx
mov eax, dword [ebx + 0xc]
push esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], esi
call sub.ntdll.dll__allmul
push 0
push dword [esp + 0x1c]
mov esi, eax
mov edi, edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.ntdll.dll__alldiv
push dword [esp + 0x1c]
mov ecx, dword [ebx + 0x44]
sub eax, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
sbb edx, edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push esi
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x58], edx
push eax
mov dword [esp + 0x34], edi
call fcn.00423d27
test al, al
je 0x41dc4c
cmp dword [esp + 0x6c], 0
jne 0x41d96c
mov eax, dword [esp + 0x68]
cmp eax, 0x20
jbe 0x41d96f
push 0x20
pop eax
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
imul eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esi, ecx
sub eax, esi
cmp edi, eax
jbe 0x41d98d
mov dword [esp + 0x24], eax
push ecx
push ecx
mov eax, esp
push dword [esp + 0x34]
push dword [esp + 0x34]
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
call fcn.00412483
test al, al
je 0x41db0b
cmp dword [ebp + 0x1c], 0
je 0x41d7ff
mov eax, dword [esp + 0x24]
xor edx, edx
add eax, esi
and dword [esp + 0x5c], 0
mov esi, dword [esp + 0x3c]
dec eax
add eax, esi
lea ecx, [esi - 1]
not ecx
and eax, ecx
mov ecx, dword [esp + 0x60]
div esi
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x41d9ea
call fcn.0041457e
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.00416755
test al, al
je 0x41d7ff
push esi
push 0
push dword [esp + 0x6c]
call sub.ntdll.dll_memset
add esp, 0xc
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
push ecx
push dword [esp + 0x4c]
push ecx
push eax
jmp 0x41dafa
push ecx
push ecx
mov eax, esp
xor esi, esi
push dword [esp + 0x4c]
inc esi
push dword [esp + 0x4c]
and dword [eax + 4], 0
mov dword [eax], esi
lea eax, [esp + 0x38]
push ecx
mov ecx, dword [ebp + 0x1c]
push eax
call fcn.004361d5
test al, al
je 0x41d7ff
push ecx
push ecx
mov eax, esp
and dword [eax + 4], 0
mov dword [eax], esi
mov esi, dword [esp + 0x34]
mov ecx, dword [ebx + 0x44]
push esi
push dword [esp + 0x34]
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.00423845
test al, al
je 0x41d7ff
mov eax, dword [ebx + 0xc]
push esi
push dword [esp + 0x2c]
cdq
push edx
push eax
call sub.ntdll.dll__allmul
lea ecx, [esp + 0x78]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
call fcn.0041685b
test al, al
je 0x41d7ff
mov ecx, dword [esp + 0x28]
xor eax, eax
inc eax
mov dword [esp + 0x40], ecx
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
push 0
pop edx
adc dword [esp + 0x1c], edx
add ecx, eax
mov eax, dword [esp + 0x20]
push edx
push dword [esp + 0x4c]
adc eax, edx
mov dword [esp + 0x4c], esi
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
push ecx
call fcn.004124da
test al, al
jne 0x41da40
mov byte [ebx + 0x53], 1
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov eax, dword [ebx + 0xc]
push ecx
cdq
push esi
push edx
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ecx
call sub.ntdll.dll__allmul
add eax, dword [esp + 0x14]
mov ecx, edx
mov esi, dword [esp + 0x24]
adc ecx, 0
mov dword [esp + 0x20], eax
xor edx, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x18]
mov eax, esi
div ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x41db6a
mov ecx, eax
imul ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x41dbf8
mov ecx, dword [esp + 0x18]
lea eax, [edx - 1]
and dword [esp + 0x5c], 0
add eax, esi
xor edx, edx
add eax, ecx
mov ecx, dword [esp + 0x74]
not ecx
and eax, ecx
mov ecx, dword [esp + 0x60]
div dword [esp + 0x18]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x41db9e
call fcn.0041457e
and dword [esp + 0x60], 0
mov eax, dword [esp + 0x14]
and dword [esp + 0x64], 0
lea ecx, [esp + 0x78]
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0x5c]
push dword [esp + 0x28]
push dword [ebx + 8]
push eax
call fcn.00416755
test al, al
je 0x41d7ff
lea ecx, [esp + 0x78]
call fcn.004167b7
test al, al
je 0x41d7ff
mov eax, dword [esp + 0x64]
add eax, dword [esp + 0x30]
push esi
push dword [esp + 0x38]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [esp + 0x70]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push dword [esp + 0x48]
mov ecx, dword [ebx + 8]
push dword [esp + 0x24]
push dword [esp + 0x18]
push eax
call fcn.00410c7a
test al, al
je 0x41d7ff
add dword [esp + 0x34], esi
sub edi, esi
mov esi, dword [ebp + 0xc]
add esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
adc edi, 0
and dword [esp + 0x30], 0
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], edi
test eax, eax
jne 0x41d8ed
jmp 0x41d84c
mov eax, dword [esp + 0x70]
test eax, eax
je 0x41d7ff
push dword [esp + 0x1c]
push esi
push dword [ebx + 0x10]
push 0x40b2b4
push 0x69ad
push eax
call fcn.00416e14
add esp, 0x18
jmp 0x41d7ff