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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x20
lea eax, [esp + 8]
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
push eax
push ebx
push ecx
call fcn.00408970
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x408f96
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push ebx
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x38]
lea ebp, [esi + ecx]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], ebp
call fcn.00408a90
add esp, 8
cmp ebp, eax
jbe 0x408db1
pop edi
pop esi
pop ebp
mov eax, 0xc9
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x44]
mov eax, esi
and eax, 7
mov ebp, esi
mov ebx, 8
sub ebp, eax
sub ebx, eax
mov dword [esp + 0x1c], eax
shr ebp, 3
cmp ebx, ecx
jbe 0x408dda
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x40], eax
jmp 0x408def
mov eax, dword [esp + 0x38]
and eax, 7
sub esi, eax
add esi, ecx
shr esi, 3
sub esi, ebp
dec esi
mov dword [esp + 0x40], esi
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x408e74
push 8
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00410afe
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
push ebx
push ecx
lea edx, [esp + esi + 0x3c]
push edx
call fcn.00410adb
push 8
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00410afe
push ebx
lea ecx, [esp + esi + 0x48]
push 0xff
push ecx
call fcn.00410afe
mov ecx, dword [esp + 0x78]
add esp, 0x30
lea edx, [esp + 0x20]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [edx + ebp]
push eax
push 0
push ecx
call fcn.00402fd0
mov edi, eax
test edi, edi
je 0x408e74
push edi
call fcn.00408540
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x40]
xor esi, esi
test eax, eax
jbe 0x408f05
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
lea eax, [edx + ebp + 1]
lea edx, [ebx + ecx]
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x44]
push 8
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00410adb
push 8
lea edx, [esp + 0x30]
push 0xff
push edx
call fcn.00410afe
mov edx, dword [esp + 0x60]
add esp, 0x18
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push 0
push ecx
call fcn.00402fd0
mov edi, eax
test edi, edi
jne 0x408f85
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
inc esi
add edx, 8
inc ecx
cmp esi, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], ecx
jb 0x408e99
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408f96
push 8
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00410afe
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x1c]
lea eax, [ebx + esi*8]
push edi
add eax, ecx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00410adb
push 8
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.00410afe
push edi
lea eax, [esp + 0x48]
push 0xff
push eax
call fcn.00410afe
mov eax, dword [esp + 0x78]
add esp, 0x30
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
add esi, ebp
push edx
push eax
mov eax, dword [esp + 0x40]
lea edx, [esi + ecx + 1]
push edx
push 0
push eax
call fcn.00402fd0
mov edi, eax
test edi, edi
je 0x408f96
push edi
call fcn.00408540
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret