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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov ecx, dword [0x4ef111]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
test ecx, ecx
jne 0x402172
nop
nop
nop
mov eax, dword [eax]
cmp dword [eax + 0x30], 0
je 0x40211c
mov esi, dword [eax + 0x18]
mov eax, dword [0x4ef115]
mov dword [esp], 0
test esi, esi
mov dword [esp + 4], esi
je 0x4021fd
mov ecx, dword [esi + 0x3c]
mov ecx, dword [esi + ecx + 0x78]
mov edx, dword [esi + ecx + 0x18]
test edx, edx
je 0x4021fd
mov dword [esp], ecx
mov edi, dword [esi + ecx + 0x20]
add edi, esi
movzx ebx, byte [eax]
xor esi, esi
jmp 0x4021b5
xor esi, esi
cmp esi, ecx
je 0x402124
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x402172
movzx edi, word [edx]
test di, di
je 0x40216c
add edx, 2
xor esi, esi
jmp 0x40219c
movzx edi, di
add esi, edi
movzx edi, word [edx]
add edx, 2
test di, di
je 0x40216e
lea ebx, [edi - 0x41]
cmp bx, 0x1a
jae 0x40218c
add edi, 0x20
jmp 0x40218c
inc esi
cmp esi, edx
je 0x4025f0
mov ebp, dword [edi + esi*4]
mov ecx, dword [esp + 4]
cmp byte [ecx + ebp], bl
jne 0x4021ac
add ebp, dword [esp + 4]
mov ecx, 1
mov bh, bl
test bh, bh
je 0x4021de
mov bh, byte [ebp + ecx]
cmp bh, byte [eax + ecx]
lea ecx, [ecx + 1]
je 0x4021cc
jmp 0x4021ac
mov edx, dword [esp + 4]
mov ecx, dword [esp]
mov eax, dword [edx + ecx + 0x1c]
add eax, edx
mov ecx, dword [edx + ecx + 0x24]
add ecx, edx
movzx ecx, word [ecx + esi*2]
mov eax, dword [eax + ecx*4]
add eax, edx
mov dword [esp], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
nop
nop
nop
mov eax, dword [eax]
cmp dword [eax + 0x30], 0
je 0x40220c
mov edi, dword [eax + 0x28]
push dword [0x4ef0e1]
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
mov edx, dword [0x4ef0e1]
mov ecx, eax
call fcn.0040206c
movzx eax, word [edi]
test ax, ax
je 0x40225d
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi + ecx], ax
movzx eax, word [edi + ecx + 2]
add ecx, 2
test ax, ax
jne 0x40224c
mov ecx, 0xffffffff
mov eax, dword [0x4ef0e5]
nop
nop
nop
nop
nop
cmp word [esi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x40226c
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x40228c
mov edx, ecx
jmp 0x40229f
mov word [esi + ecx*2], 0
lea edx, [ecx - 1]
cmp word [esi + ecx*2 - 4], 0x5c
mov ecx, edx
jne 0x40228c
movzx ecx, byte [eax]
test cl, cl
je 0x4022bd
lea edx, [esi + edx*2]
xor edi, edi
nop
movsx ecx, cl
mov word [edx + edi*2], cx
movzx ecx, byte [eax + edi + 1]
inc edi
test cl, cl
jne 0x4022ac
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x4022e3
push 0
call dword [esp + 4]
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
push 4
push 0x1000
push dword [0x4ef121]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x402327
push 0
call dword [esp + 4]
mov eax, dword [esp + 0x2c]
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [0x4ef11d]
lea edi, [esi + eax]
mov dword [esp + 8], eax
mov eax, dword [esi + eax]
test eax, eax
mov ebx, dword [esp + 4]
je 0x402364
mov edx, dword [esp + 8]
mov ecx, dword [esi + edx + 4]
lea edx, [edx + esi + 8]
nop
nop
nop
nop
nop
nop
nop
nop
add dword [edx], ecx
add edx, 4
dec eax
jne 0x40235c
mov dword [esp + 0x28], esi
mov ecx, dword [0x4ef109]
mov eax, ecx
mov dword [esp + 0x20], ecx
add edi, ecx
test ebx, ebx
je 0x40240e
mov eax, dword [ebx + 0x3c]
mov ebp, dword [ebx + eax + 0x78]
mov eax, dword [ebx + ebp + 0x18]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40240e
mov eax, dword [ebx + ebp + 0x20]
add eax, ebx
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 1]
mov byte [esp + 0xc], al
mov eax, dword [esp + 8]
inc esp
and al, 8
mov dword [esp], 0
jmp 0x4021fd