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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483d27
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4a3070]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebx + 0x14], esi
je 0x40642a
lea eax, [esp + 0x54]
push eax
call fcn.00403912
mov edi, dword [ebp + 8]
mov dword [esp + 0xb0], esi
cmp dword [edi + 0x18], 8
jb 0x405fa1
mov eax, dword [edi + 4]
jmp 0x405fa4
lea eax, [edi + 4]
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x18], 8
jb 0x405fb3
mov eax, dword [ebx + 4]
jmp 0x405fb6
lea eax, [ebx + 4]
push eax
mov eax, dword [esp + 0x2c]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x405fec
sub eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x14]
shr eax, 1
add esi, eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x54], esi
call fcn.0040682d
jmp 0x405fa8
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sar ecx, 3
test ecx, ecx
je 0x406421
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 0x14]
mov esi, dword [edi + 0x14]
imul ecx, eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
add ecx, esi
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
call fcn.00403912
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xb4], 1
call fcn.00403912
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0xb4], 2
call fcn.00403912
mov byte [esp + 0xb0], 3
mov eax, dword [esp + 0x60]
xor edi, edi
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x64]
jbe 0x40606a
call fcn.004437aa
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x60], eax
jbe 0x40608d
call fcn.004437aa
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40609b
cmp eax, dword [esp + 0x54]
je 0x4060a0
call fcn.004437aa
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
je 0x4060eb
lea esi, [esp + 0x14]
call fcn.00404dde
cmp dword [eax], edi
jbe 0x4060d4
mov dword [esp + 0x28], edi
call fcn.00404dde
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
call fcn.0040682d
lea esi, [esp + 0x14]
call fcn.00404dde
mov edi, dword [eax + 4]
call fcn.0040688b
mov esi, dword [esp + 0x48]
jmp 0x40607a
cmp edi, esi
jae 0x406105
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
call fcn.0040682d
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
xor edi, edi
sar eax, 3
test eax, eax
jbe 0x406161
mov dword [esp + 0x28], edi
lea esi, [esp + 0x54]
call fcn.00406814
mov eax, dword [eax]
mov esi, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x14]
add eax, esi
add ecx, eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x28], ecx
call fcn.0040682d
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
add esi, dword [esp + 0x1c]
inc edi
sar eax, 3
mov dword [esp + 0x28], esi
cmp edi, eax
jb 0x40611a
mov eax, dword [esp + 0x40]
mov ecx, eax
sub ecx, dword [esp + 0x3c]
xor edi, edi
sar ecx, 3
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
test ecx, ecx
jbe 0x406207
jmp 0x406185
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx + 0x14]
lea esi, [esp + 0x30]
call fcn.00406814
mov eax, dword [eax]
sub eax, dword [esp + 0x14]
xor edx, edx
div ebx
add dword [esp + 0x28], eax
call fcn.00406814
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.00406814
mov ebx, dword [eax + 4]
add ebx, dword [esp + 0x20]
call fcn.00406814
mov eax, dword [eax]
add eax, dword [esp + 0x20]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x90]
call fcn.0040682d
mov eax, dword [esp + 0x40]
mov ecx, eax
sub ecx, dword [esp + 0x3c]
inc edi
sar ecx, 3
cmp edi, ecx
jb 0x406182
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [esp + 0x48]
je 0x406343
mov esi, dword [ebp + 8]
jbe 0x4062c3
mov eax, ecx
mov ecx, esi
call fcn.004066c8
cmp dword [esi + 0x18], 8
jb 0x406234
lea eax, [esi + 4]
mov ebx, dword [eax]
jmp 0x406237
lea ebx, [esi + 4]
mov edi, dword [esp + 0x40]
sub edi, dword [esp + 0x3c]
and dword [esp + 0x28], 0
sar edi, 3
test edi, edi
jbe 0x406346
sub edi, dword [esp + 0x28]
lea esi, [esp + 0x30]
dec edi
call fcn.00406814
add eax, 4
mov dword [esp + 0x20], eax
call fcn.00406814
mov dword [esp + 0x1c], eax
call fcn.00406814
lea esi, [esp + 0x8c]
mov dword [esp + 0x14], eax
call fcn.00406814
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x1c]
sub ecx, dword [edx]
mov eax, dword [eax]
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
lea ecx, [ebx + ecx*2]
push ecx
lea eax, [ebx + eax*2]
push eax
call fcn.00443230
mov edi, dword [esp + 0x4c]
sub edi, dword [esp + 0x48]
add esp, 0xc
inc dword [esp + 0x28]
sar edi, 3
cmp dword [esp + 0x28], edi
jb 0x40624f
jmp 0x406343
cmp dword [esi + 0x18], 8
jb 0x4062ce
mov ebx, dword [esi + 4]
jmp 0x4062d1
lea ebx, [esi + 4]
sub eax, dword [esp + 0x3c]
xor edi, edi
sar eax, 3
test eax, eax
jbe 0x406346
lea esi, [esp + 0x30]
call fcn.00406814
add eax, 4
mov dword [esp + 0x20], eax
call fcn.00406814
mov dword [esp + 0x1c], eax
call fcn.00406814
lea esi, [esp + 0x8c]
mov dword [esp + 0x14], eax
call fcn.00406814
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x1c]
sub ecx, dword [edx]
mov eax, dword [eax]
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
lea ecx, [ebx + ecx*2]
push ecx
lea eax, [ebx + eax*2]
push eax
call fcn.00443230
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
add esp, 0xc
inc edi
sar eax, 3
cmp edi, eax
jb 0x4062de
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x78]
cmp edi, dword [esp + 0x7c]
jbe 0x406355
call fcn.004437aa
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x7c]
cmp dword [esp + 0x78], edi
jbe 0x406370
call fcn.004437aa
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40637e
cmp eax, dword [esp + 0x6c]
je 0x406383
call fcn.004437aa
cmp dword [esp + 0x18], edi
je 0x4063f8
cmp dword [esi + 0x18], 8
jb 0x40639a
add esi, 4
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
jmp 0x4063a1
add esi, 4
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 8
jb 0x4063af
mov eax, dword [eax + 4]
jmp 0x4063b2
add eax, 4
lea esi, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.00404dde
lea edi, [eax + 4]
call fcn.00404dde
mov ebx, eax
call fcn.00404dde
mov ecx, dword [edi]
sub ecx, dword [ebx]
mov eax, dword [eax]
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x20]
push dword [esp + 0x24]
lea eax, [ecx + eax*2]
push eax
call fcn.00445840
add esp, 0xc
call fcn.0040688b
mov esi, dword [ebp + 8]
jmp 0x406361
mov eax, dword [esp + 0x4c]
mov ecx, esi
call fcn.004066c8
lea esi, [esp + 0x8c]
call fcn.00440da5
lea esi, [esp + 0x6c]
call fcn.00440da5
lea esi, [esp + 0x30]
call fcn.00440da5
lea esi, [esp + 0x54]
call fcn.00440da5
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret