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

Disassembly:
mov eax, 0x1358
call fcn.004123a0
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x1354], eax
mov eax, dword [esp + 0x135c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x104
lea ecx, [esp + 0x21d]
push ebx
push ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x224], bl
call fcn.004100c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x955]
push ebx
push edx
mov byte [esp + 0x95c], bl
call fcn.004100c0
add esp, 0xc
push 0x104
lea eax, [esp + 0x745]
push ebx
push eax
mov byte [esp + 0x74c], bl
call fcn.004100c0
add esp, 0xc
push 0x7ff
lea ecx, [esp + 0xb65]
push ebx
push ecx
mov byte [esp + 0xb6c], bl
call fcn.004100c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x42d]
push ebx
push edx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x434], bl
call fcn.004100c0
add esp, 0xc
push 0x104
lea eax, [esp + 0xa5d]
push ebx
push eax
mov byte [esp + 0xa64], bl
call fcn.004100c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x84d]
push ebx
push ecx
mov byte [esp + 0x854], bl
call fcn.004100c0
add esp, 0xc
call fcn.00404f50
push 0x41ccac
mov esi, eax
call fcn.00409290
add esp, 4
cmp esi, eax
jl 0x40225a
mov eax, 1
jmp 0x4027f7
push str.r__7_
lea ecx, [esp + 0xa5c]
call fcn.00404480
add esp, 4
push 0x41ccc0
lea ecx, [esp + 0x84c]
call fcn.00404480
add esp, 4
push 0x41ccc8
lea ecx, [esp + 0x744]
call fcn.00404480
add esp, 4
push 0x41ccd4
lea ecx, [esp + 0x954]
call fcn.00404480
add esp, 4
lea edx, [esp + 0x950]
push edx
lea eax, [esp + 0x744]
push eax
call dword [sym.imp.kErNUL32.dll_GetMgdulealdneA]
push eax
call dword [0x417054]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4027f5
call fcn.00401960
test eax, eax
je 0x40269b
push 0x105
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x850]
push edx
call dword [0x41707c]
test eax, eax
je 0x4027f5
push 0x103
lea eax, [esp + 0x63d]
push ebx
push eax
mov byte [esp + 0x644], bl
call fcn.004100c0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x535]
push ebx
push ecx
mov byte [esp + 0x53c], bl
call fcn.004100c0
add esp, 0xc
push 0x103
lea edx, [esp + 0x325]
push ebx
push edx
mov byte [esp + 0x32c], bl
call fcn.004100c0
add esp, 0xc
push 0x103
lea eax, [esp + 0x115]
push ebx
push eax
mov byte [esp + 0x11c], bl
call fcn.004100c0
add esp, 0xc
lea ecx, [esp + 0x218]
push ecx
push 0x41cce4
lea edx, [esp + 0x640]
push 0x104
push edx
call fcn.00408ef8
push 0x41cce8
lea eax, [esp + 0x64c]
push 0x104
push eax
call fcn.0040976d
add esp, 0x1c
push 0x104
lea ecx, [esp + 0x114]
push ebx
push ecx
call fcn.004100c0
add esp, 0xc
push 0x41ccec
lea ecx, [esp + 0x114]
call fcn.00404480
add esp, 4
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x63c]
push 0x104
push eax
call fcn.0040976d
add esp, 0xc
lea ecx, [esp + 0x218]
push ecx
push 0x41cd00
lea edx, [esp + 0x538]
push 0x104
push edx
call fcn.00408ef8
push 0x41cd04
lea eax, [esp + 0x544]
push 0x104
push eax
call fcn.0040976d
add esp, 0x1c
push 0x104
lea ecx, [esp + 0x114]
push ebx
push ecx
call fcn.004100c0
add esp, 0xc
push 0x41cd08
lea ecx, [esp + 0x114]
call fcn.00404480
add esp, 4
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x534]
push 0x104
push eax
call fcn.0040976d
add esp, 0xc
lea ecx, [esp + 0x218]
push ecx
push 0x41cd14
lea edx, [esp + 0x328]
push 0x104
push edx
call fcn.00408ef8
push 0x41cd18
lea eax, [esp + 0x334]
push 0x104
push eax
call fcn.0040976d
add esp, 0x1c
push 0x104
lea ecx, [esp + 0x114]
push ebx
push ecx
call fcn.004100c0
add esp, 0xc
push 0x41cd1c
lea ecx, [esp + 0x114]
call fcn.00404480
add esp, 4
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x324]
push 0x104
push eax
call fcn.0040976d
mov ecx, dword [0x4d5428]
mov eax, dword [ecx]
add esp, 0xc
push 0x5c
push eax
call fcn.00409740
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4027f5
xor ebp, ebp
call fcn.00404600
push esi
lea edx, [esp + 0x21c]
push 0x105
push edx
mov edi, eax
call fcn.0040976d
add esp, 0xc
test edi, 0x1100
je 0x402540
mov ebp, 1
mov edi, 0x44
mov ecx, edi
lea eax, [esp + 0x30]
jmp 0x402550
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x402550
xor eax, eax
mov word [esp + 0x60], ax
mov dword [esp + 0x30], edi
mov ecx, 0x10
lea eax, [esp + 0x20]
lea esp, [esp]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x402570
cmp ebp, 1
jne 0x402636
push 0x41cd30
lea ecx, [esp + 0x114]
call fcn.00404480
add esp, 4
lea ecx, [esp + 0x320]
push ecx
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x538]
push eax
lea ecx, [esp + 0x644]
push ecx
call fcn.00401fa0
add esp, 0x10
test eax, eax
je 0x4027f5
mov esi, dword [0x417068]
push 0xea60
call esi
push 0x41cd4c
lea ecx, [esp + 0x114]
call fcn.00404480
add esp, 4
lea edx, [esp + 0x320]
push edx
lea eax, [esp + 0x114]
push eax
push 0x41cd68
lea ecx, [esp + 0xb6c]
push 0x800
push ecx
call fcn.00408ef8
add esp, 0x14
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0xb80]
push ecx
push ebx
call dword [esp + 0x3c]
push 0xea60
call esi
jmp 0x40264e
lea edx, [esp + 0x218]
push edx
call fcn.00401a40
add esp, 4
test eax, eax
je 0x4027f5
mov eax, dword [0x4d5428]
mov eax, dword [eax]
push eax
push eax
lea ecx, [esp + 0x220]
push ecx
push str.__s____w____s_
lea edx, [esp + 0xb70]
push 0x800
push edx
call fcn.00408ef8
add esp, 0x18
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0xb80]
push edx
push ebx
call dword [esp + 0x3c]
jmp 0x4027f5
call fcn.00402810
test eax, eax
je 0x4026ab
push 1
call fcn.00402940
mov ecx, 0x94
lea eax, [esp + 0x78]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x4026b4
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], 0x94
call dword [0x41703c]
test eax, eax
je 0x4027f5
mov eax, dword [esp + 0x7c]
cmp eax, 5
jne 0x4026e7
push 0x41cd84
jmp 0x402718
cmp eax, 6
jne 0x4027f5
mov eax, dword [esp + 0x80]
cmp eax, ebx
jne 0x402702
push 0x41cda8
jmp 0x402718
cmp eax, 1
jne 0x40270e
push 0x41cdf0
jmp 0x402718
cmp eax, 2
jne 0x402727
push 0x41ce04
lea ecx, [esp + 0x42c]
call fcn.00404480
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x42c]
push 0x41ce14
push edx
call fcn.00408fa6
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4027f5
mov ebp, dword [0x4171f0]
mov edi, 0x44
push 1
mov ecx, esi
call fcn.00401500
add esp, 4
cmp eax, 0xffffffff
jne 0x4027c3
mov ecx, edi
lea eax, [esp + 0x30]
lea ecx, [ecx]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x402770
mov dword [esp + 0x30], edi
mov ecx, 0x10
lea eax, [esp + 0x20]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x402785
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [esp + 0x3c]
test eax, eax
je 0x4027d8
mov edx, dword [esp + 0x20]
push 0x1388
push edx
call ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
call fcn.004016c0
jmp 0x4027cd
mov ecx, dword [esp + 0x18]
push eax
call fcn.00401870
add esp, 4
test eax, eax
jne 0x402250
lea ecx, [esp + 0x1c]
push ecx
push 0x41ce18
push ebx
call fcn.00408fa6
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x402756
xor eax, eax
mov ecx, dword [esp + 0x1364]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004089ca
add esp, 0x1358
ret