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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x429907
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x431300]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x38], ebx
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx + 8]
cmp eax, 7
ja case.default.0x406168
jmp dword [eax*4 + 0x4065a0]
push 4
push str.null
lea eax, [ebx + 4]
call fcn.0040a8c0
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00404b00
mov ecx, eax
lea edi, [esp + 0x94]
call fcn.00405930
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 0
call fcn.0040a7d0
mov ecx, edi
call fcn.00410ed0
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00404cb0
mov ecx, eax
lea edi, [esp + 0xcc]
call fcn.004059d0
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 1
call fcn.0040a7d0
mov ecx, edi
call fcn.00410ed0
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
call fcn.00404e70
sub esp, 8
lea esi, [esp + 0x80]
fstp qword [esp]
call fcn.00405a50
add esp, 8
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 2
call fcn.0040a7d0
lea ecx, [esp + 0x78]
call fcn.00410ed0
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ecx]
lea eax, [esp + 0xb0]
push eax
call fcn.00405be0
add esp, 4
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 3
call fcn.0040a7d0
lea ecx, [esp + 0xb0]
call fcn.00410ed0
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, ecx
call fcn.00404f80
movzx ecx, al
push ecx
lea esi, [esp + 0xec]
call fcn.00405b90
add esp, 4
push 0
push eax
lea esi, [ebx + 4]
or eax, 0xffffffff
mov dword [esp + 0x148], 4
call fcn.0040a7d0
lea ecx, [esp + 0xe8]
call fcn.00410ed0
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
add ebx, 4
push str.___:
mov eax, ebx
call fcn.0040a8c0
mov ecx, dword [ebp + 8]
call fcn.00404ff0
mov edi, eax
xor esi, esi
test edi, edi
jle 0x406372
test esi, esi
jle 0x40635a
push 1
push 0x42cf90
mov eax, ebx
call fcn.0040a8c0
mov ecx, dword [ebp + 8]
push esi
call fcn.00405300
mov ecx, dword [esp + 0x38]
push eax
call fcn.00406120
inc esi
cmp esi, edi
jl 0x406348
push 1
push 0x42cf94
mov eax, ebx
call fcn.0040a8c0
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x3c]
push edx
call fcn.00405710
push 1
lea eax, [ebx + 4]
push 0x42cf98
mov dword [esp + 0x148], 5
mov dword [esp + 0x3c], eax
call fcn.0040a8c0
mov edi, dword [esp + 0x48]
cmp edi, dword [esp + 0x4c]
jbe 0x4063cf
call fcn.00413544
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x54], esi
lea ebx, [edi + 4]
lea ebx, [ebx]
mov edi, dword [esp + 0x4c]
cmp dword [esp + 0x48], edi
jbe 0x4063ef
call fcn.00413544
test esi, esi
je 0x4063f9
cmp esi, dword [esp + 0x3c]
je 0x4063fe
call fcn.00413544
lea eax, [ebx - 4]
cmp eax, edi
je 0x406534
test esi, esi
jne 0x406464
call fcn.00413544
xor eax, eax
lea ecx, [ebx - 4]
cmp ecx, dword [eax + 0x10]
jb 0x406421
call fcn.00413544
mov edi, dword [esp + 0x48]
cmp edi, dword [esp + 0x4c]
jbe 0x406430
call fcn.00413544
test esi, esi
je 0x40643a
cmp esi, dword [esp + 0x3c]
je 0x40643f
call fcn.00413544
lea eax, [ebx - 4]
cmp eax, edi
je 0x406456
mov eax, dword [esp + 0x34]
push 1
push 0x42cf90
call fcn.0040a8c0
mov edi, 0x10
cmp dword [ebx + 0x14], edi
jb 0x406468
mov ecx, dword [ebx]
jmp 0x40646a
mov eax, dword [esi]
jmp 0x406414
mov ecx, ebx
lea eax, [esp + 0x5c]
push eax
call fcn.00405be0
add esp, 4
mov esi, dword [esp + 0x34]
push 0
push eax
or eax, 0xffffffff
mov byte [esp + 0x148], 6
call fcn.0040a7d0
mov byte [esp + 0x140], 5
cmp dword [esp + 0x74], edi
jb 0x4064a9
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004122a1
add esp, 4
mov esi, dword [esp + 0x38]
cmp byte [esi + 0x20], 0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
mov edx, 0x42cf9c
jne 0x4064d2
mov edx, 0x42cfa0
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4064d7
sub eax, edi
push eax
mov eax, dword [esp + 0x38]
push edx
call fcn.0040a8c0
cmp dword [ebx + 0x14], 0x10
jb 0x4064f5
mov eax, dword [ebx]
jmp 0x4064f7
mov eax, ebx
mov ecx, dword [ebp + 8]
push eax
call fcn.004055d0
push eax
mov ecx, esi
call fcn.00406120
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x406530
call fcn.00413544
xor eax, eax
lea ecx, [ebx - 4]
cmp ecx, dword [eax + 0x10]
jb 0x406524
call fcn.00413544
mov esi, dword [esp + 0x54]
add ebx, 0x1c
jmp 0x4063e0
mov eax, dword [eax]
jmp 0x406517
mov eax, dword [esp + 0x34]
push 1
push 0x42cfa4
call fcn.0040a8c0
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x40656c
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
push edx
call fcn.0040ea70
mov eax, dword [esp + 0x4c]
add esp, 4
push eax
call fcn.004122a1
add esp, 4
mov ecx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call fcn.004122a1
add esp, 4
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4