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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [case.0x40e4b4.0]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 6
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
call dword [0x41b294]
push esi
lea ecx, [esp + 0x124]
call fcn.00408366
mov eax, dword [esp + 0x190]
or eax, dword [esp + 0x194]
je 0x401d86
cmp dword [esp + 0x134], edi
je 0x401d86
lea eax, [esp + 0x120]
call fcn.00401c00
cmp dword [eax + 0x14], edi
je 0x401d86
cmp dword [esp + 0x16c], edi
je 0x401d86
cmp dword [esp + 0x188], edi
je 0x401d86
cmp dword [esp + 0x1c8], edi
je 0x401d86
cmp dword [esp + 0x1e4], edi
jne 0x401d97
push edi
mov esi, 0x41dbc0
call fcn.004051e9
pop ecx
jmp 0x40200e
call fcn.00408a71
mov edi, eax
lea ecx, [esp + 0x120]
mov ebx, edi
call fcn.00408b5f
lea eax, [esp + 0x120]
call fcn.00401c00
push esi
mov ecx, eax
lea ebx, [esp + 0xac]
call fcn.0040b3b7
xor ebx, ebx
lea esi, [esp + 0xa8]
mov byte [esp + 0xdd], bl
call fcn.00406f6b
cmp byte [esp + 0xfc], bl
je 0x402001
cmp byte [esp + 0xfd], bl
je 0x401f35
push 0x41df04
lea esi, [esp + 0x3c]
call fcn.0040215c
mov ecx, esi
call fcn.0040acc3
jmp 0x401f29
cmp dword [edi + 0xa8], ebx
jne 0x401f4d
or dword [esp + 0x14], 1
lea ecx, [esp + 0x54]
mov eax, edi
call fcn.00401c1f
cmp dword [eax + 0x14], ebx
je 0x401e4a
or dword [esp + 0x14], 2
lea ecx, [esp + 0x38]
mov eax, edi
call fcn.00401c37
mov byte [esp + 0x13], bl
cmp dword [eax + 0x14], ebx
jne 0x401e4f
mov byte [esp + 0x13], 1
test byte [esp + 0x14], 2
je 0x401e67
and dword [esp + 0x14], 0xfffffffd
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.00402259
test byte [esp + 0x14], 1
je 0x401e7f
and dword [esp + 0x14], 0xfffffffe
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.00402259
cmp byte [esp + 0x13], bl
je 0x401ebb
lea eax, [esp + 0x120]
call fcn.00401c00
push dword [esp + 0x18]
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.00409a77
lea esi, [esp + 0x70]
call fcn.00406f6b
mov ecx, esi
mov dword [esp + 0x70], 0x41e5e8
call fcn.00406f4b
jmp 0x401f35
push 7
pop eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], eax
xor eax, eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x54]
push eax
xor ecx, ecx
lea eax, [esp + 0x3c]
mov word [esp + 0x40], cx
push eax
lea ecx, [esp + 0x78]
mov eax, edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x70], ebx
call fcn.00401c37
push eax
lea ecx, [esp + 0x28]
mov eax, edi
call fcn.00401c1f
push eax
mov eax, edi
call fcn.00408f62
push ebx
push 1
lea esi, [esp + 0x24]
call fcn.00402259
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.00402259
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.00402259
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.00402259
cmp byte [edi + 0x241], bl
je 0x401e10
cmp dword [edi + 0xa8], ebx
je 0x402001
lea eax, [esp + 0x120]
call fcn.00401c00
mov esi, eax
lea ecx, [esp + 0x70]
lea eax, [esp + 0xa8]
call fcn.00401c4f
lea ecx, [esp + 0x104]
push ecx
mov edx, esi
mov ecx, eax
call fcn.004056f1
pop ecx
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.00402259
push dword [esp + 0x194]
lea eax, [esp + 0x178]
push dword [esp + 0x194]
add edi, 0x94
push eax
push edi
lea ecx, [esp + 0x80]
lea eax, [esp + 0xb8]
call fcn.00401c4f
push eax
lea eax, [esp + 0x118]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x294]
push eax
call fcn.00409c6c
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.00402259
lea esi, [esp + 0x278]
call fcn.00406f6b
mov ecx, esi
call fcn.00409dce
push ebx
push 1
lea esi, [esp + 0x10c]
call fcn.00402259
lea eax, [esp + 0xa8]
push eax
call fcn.00402117
lea eax, [esp + 0x120]
push eax
call fcn.00402034
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040bf29
mov esp, ebp
pop ebp
ret 0x10