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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x542fbc
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push ebx
push esi
push edi
mov eax, dword [0x58c584]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
movsx eax, byte [ebx + 8]
cmp eax, 7
ja case.default.0x401e41
jmp dword [eax*4 + 0x402169]
push str.null
lea ecx, [esp + 0x5c]
call fcn.004026ad
and dword [esp + 0x160], 0
lea eax, [esp + 0x58]
push eax
mov eax, edi
call fcn.004023e8
lea ecx, [esp + 0x58]
push 0
push 1
call fcn.004034b0
jmp case.default.0x401e41
mov ecx, ebx
call fcn.00406798
push eax
lea esi, [esp + 0xe8]
call fcn.00401936
pop ecx
xor esi, esi
inc esi
push eax
mov eax, edi
mov dword [esp + 0x164], esi
call fcn.004023e8
push 0
push esi
lea ecx, [esp + 0xec]
jmp 0x401e72
mov ecx, ebx
call fcn.004068fc
push eax
lea esi, [esp + 0xb0]
call fcn.00401993
pop ecx
push eax
mov eax, edi
mov dword [esp + 0x164], 2
call fcn.004023e8
mov ecx, esi
jmp 0x401e6e
push ebx
call fcn.00406a58
push ecx
push ecx
lea esi, [esp + 0x124]
fstp qword [esp]
call fcn.004019d3
pop ecx
pop ecx
push eax
mov eax, edi
mov dword [esp + 0x164], 3
call fcn.004023e8
mov ecx, esi
jmp 0x401e6e
mov ecx, dword [ebx]
lea eax, [esp + 0xc8]
push eax
call fcn.00401a89
pop ecx
push eax
mov eax, edi
mov dword [esp + 0x164], 4
call fcn.004023e8
lea ecx, [esp + 0xc8]
jmp 0x401e6e
mov ecx, ebx
call fcn.00406af4
movzx eax, al
push eax
lea eax, [esp + 0x104]
push eax
call fcn.00401a63
pop ecx
pop ecx
push eax
mov eax, edi
mov dword [esp + 0x164], 5
call fcn.004023e8
lea ecx, [esp + 0x100]
jmp 0x401e6e
push ebx
call fcn.00402189
jmp case.default.0x401e41
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00407142
mov dword [esp + 0x160], 6
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x401fd5
push 0x561cf0
lea ecx, [esp + 0x78]
call fcn.004026ad
lea eax, [esp + 0x74]
push eax
mov eax, edi
mov byte [esp + 0x164], 7
call fcn.004023e8
lea ecx, [esp + 0x74]
jmp 0x402135
push 0x561ce0
lea ecx, [esp + 0x40]
call fcn.004026ad
lea eax, [esp + 0x3c]
push eax
mov eax, edi
mov byte [esp + 0x164], 8
call fcn.0040244e
push 0
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x168], 6
call fcn.004034b0
mov esi, edi
call fcn.0040246d
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.004047f7
lea ecx, [esp + 0x14]
call fcn.00428f93
mov ecx, ebx
mov esi, eax
call fcn.00406fc2
mov edx, eax
push edi
mov dword [esp + 0x14], edx
call fcn.004024a9
cmp dword [esi + 0x18], 0x10
jb 0x40204e
mov ecx, dword [esi + 4]
jmp 0x402051
lea ecx, [esi + 4]
lea eax, [esp + 0x138]
push eax
call fcn.00401a89
pop ecx
push eax
mov eax, edi
mov byte [esp + 0x164], 9
call fcn.0040244e
push 0
push 1
lea ecx, [esp + 0x140]
mov byte [esp + 0x168], 6
call fcn.004034b0
lea esi, [edi + 0x1c]
push 0x561cf4
mov ecx, esi
call fcn.004032a8
push dword [esp + 0x10]
mov ecx, edi
call fcn.00401dfd
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x30]
lea ecx, [esp + 0x3c]
call fcn.004047f7
lea ecx, [esp + 0x14]
call fcn.004038bc
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.0040316d
test al, al
jne 0x4020ea
push 0x561cd8
mov ecx, esi
call fcn.004032a8
push dword [esp + 0x10]
mov ecx, edi
call fcn.0040251d
jmp 0x402025
push dword [esp + 0x10]
mov ecx, edi
call fcn.0040251d
mov eax, dword [edi + 0x4c]
sub eax, dword [edi + 0x58]
push 0
push eax
lea ecx, [edi + 0x38]
call fcn.0040340b
push 0x561cec
lea ecx, [esp + 0x94]
call fcn.004026ad
lea eax, [esp + 0x90]
push eax
mov eax, edi
mov byte [esp + 0x164], 0xa
call fcn.0040244e
lea ecx, [esp + 0x90]
push 0
push 1
call fcn.004034b0
lea ecx, [esp + 0x1c]
call fcn.004036dc
push dword [esp + 0x1c]
call fcn.005089a3
pop ecx
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4