Function at 0x401f86
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x4edd53]
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov edx, ecx
jmp 0x401faf
xor edi, edi
lea esi, [edi + edi*2]
cmp esi, eax
je 0x401ff8
mov edx, dword [edx]
mov dword [esp + 0xc], 0
cmp edx, ecx
je 0x401ff4
mov esi, dword [edx + 0x30]
movzx ebx, word [esi]
test bx, bx
je 0x401fa6
add esi, 2
xor edi, edi
jmp 0x401fe6
movzx ebx, bx
add edi, ebx
movzx ebx, word [esi]
add esi, 2
test bx, bx
je 0x401fa8
lea ebp, [ebx - 0x41]
cmp bp, 0x1a
jae 0x401fd6
add ebx, 0x20
jmp 0x401fd6
xor ebp, ebp
jmp 0x401ffb
mov ebp, dword [edx + 0x18]
mov ecx, dword [0x4edd2f]
mov eax, dword [0x4edd63]
mov edx, dword [0x4edd23]
mov dword [esp], edx
mov edx, dword [ebp + 0x3c]
add edx, ebp
mov ecx, dword [edx + ecx*8 + 0x78]
mov edx, dword [ebp + ecx + 0x18]
mov dword [esp + 0x14], edx
test edx, edx
mov dword [esp + 4], ebp
je 0x4020db
mov esi, dword [ebp + ecx + 0x20]
add esi, ebp
mov edx, dword [ebp + ecx + 0x1c]
add edx, ebp
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + ecx + 0x24]
add ecx, ebp
mov dword [esp + 0x10], ecx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [esi + edi*4]
add ebx, ebp
mov edx, 0xffffffff
xor ebp, ebp
nop
nop
nop
nop
mov ecx, ebp
cmp byte [ebx + edx + 1], 0
lea edx, [edx + 1]
lea ebp, [ebp + 1]
jne 0x402066
test edx, edx
je 0x4020a6
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
imul edx, eax
movzx ebp, byte [ebx]
add edx, ebp
inc ebx
dec ecx
jne 0x402086
cmp edx, dword [esp]
jne 0x4020ad
jmp 0x4020c2
xor edx, edx
cmp edx, dword [esp]
je 0x4020c2
inc edi
cmp edi, dword [esp + 0x14]
mov ebp, dword [esp + 4]
jne 0x402056
mov dword [esp + 0xc], 0
jmp 0x4020db
mov eax, dword [esp + 0x10]
movzx eax, word [eax + edi*2]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + eax*4]
mov ebp, dword [esp + 4]
add eax, ebp
mov dword [esp + 0xc], eax
push dword [0x4edd27]
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov dword [esp + 0x14], eax
mov ecx, dword [0x4edd2f]
mov eax, dword [0x4edd63]
mov edx, dword [0x4edd3f]
mov dword [esp], edx
mov edx, dword [ebp + 0x3c]
add edx, ebp
mov ecx, dword [edx + ecx*8 + 0x78]
mov ebx, dword [ebp + ecx + 0x20]
add ebx, ebp
mov edx, dword [ebp + ecx + 0x1c]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + ecx + 0x24]
mov dword [esp + 8], ecx
xor edx, edx
nop
nop
nop
nop
mov edi, dword [ebx + edx*4]
add edi, ebp
mov ebp, 0xffffffff
xor ecx, ecx
nop
nop
nop
nop
mov esi, ecx
cmp byte [edi + ebp + 1], 0
lea ebp, [ebp + 1]
lea ecx, [ecx + 1]
jne 0x402136
test ebp, ebp
je 0x402176
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
imul ebp, eax
movzx ecx, byte [edi]
add ebp, ecx
inc edi
dec esi
jne 0x402156
cmp ebp, dword [esp]
jne 0x40217d
jmp 0x402184
xor ebp, ebp
cmp ebp, dword [esp]
je 0x402184
inc edx
mov ebp, dword [esp + 4]
jmp 0x402126
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 0x10]
add ecx, ebp
mov eax, dword [esp + 8]
add eax, ebp
movzx eax, word [eax + edx*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebp
push 0x104
mov edi, dword [esp + 0x18]
push edi
push 0
call ecx
mov ecx, dword [0x4edd57]
mov edx, dword [0x4edd3b]
cmp word [edi + eax*2 - 2], dx
jne 0x4021c6
mov edx, eax
jmp 0x4021de
mov word [edi + eax*2], 0
mov esi, dword [0x4edd3b]
lea edx, [eax - 1]
cmp word [edi + eax*2 - 4], si
mov eax, edx
jne 0x4021c6
movzx eax, byte [ecx]
test al, al
je 0x402207
lea edx, [edi + edx*2]
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx eax, al
mov word [edx + esi*2], ax
movzx eax, byte [ecx + esi + 1]
inc esi
test al, al
jne 0x4021f6
mov ecx, dword [0x4edd2f]
mov eax, dword [0x4edd63]
mov edx, dword [0x4edd4b]
mov dword [esp], edx
mov edx, dword [ebp + 0x3c]
add edx, ebp
mov ecx, dword [edx + ecx*8 + 0x78]
mov ebx, dword [ebp + ecx + 0x20]
add ebx, ebp
mov edx, dword [ebp + ecx + 0x1c]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + ecx + 0x24]
mov dword [esp + 8], ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [ebx + edx*4]
add edi, ebp
mov ebp, 0xffffffff
xor ecx, ecx
nop
nop
nop
nop
mov esi, ecx
cmp byte [edi + ebp + 1], 0
lea ebp, [ebp + 1]
lea ecx, [ecx + 1]
jne 0x402256
test ebp, ebp
je 0x402296
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
imul ebp, eax
movzx ecx, byte [edi]
add ebp, ecx
inc edi
dec esi
jne 0x402276
cmp ebp, dword [esp]
jne 0x40229d
jmp 0x4022a4
xor ebp, ebp
cmp ebp, dword [esp]
je 0x4022a4
inc edx
mov ebp, dword [esp + 4]
jmp 0x402246
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x10]
add ecx, esi
mov eax, dword [esp + 8]
add eax, esi
movzx eax, word [eax + edx*2]
mov ecx, dword [ecx + eax*4]
add ecx, esi
push 0
push dword [0x4edd6f]
push dword [0x4edd2b]
push 0
push 1
push dword [0x4edd5b]
push dword [esp + 0x2c]
call ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x4edd2f]
mov eax, dword [0x4edd63]
mov edx, dword [0x4edd33]
mov dword [esp], edx
mov edx, dword [esi + 0x3c]
add edx, esi
mov ecx, dword [edx + ecx*8 + 0x78]
mov ebx, dword [esi + ecx + 0x20]
add ebx, esi
mov edx, dword [esi + ecx + 0x1c]
mov dword [esp + 8], edx
mov ecx, dword [esi + ecx + 0x24]
mov dword [esp + 0x18], ecx
xor edx, edx
nop
nop
mov edi, dword [ebx + edx*4]
add edi, esi
mov ebp, 0xffffffff
xor ecx, ecx
nop
nop
nop
nop
mov esi, ecx
cmp byte [edi + ebp + 1], 0
lea ebp, [ebp + 1]
lea ecx, [ecx + 1]
jne 0x402326
test ebp, ebp
je 0x402366
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
imul ebp, eax
movzx ecx, byte [edi]
add ebp, ecx
inc edi
dec esi
jne 0x402346
cmp ebp, dword [esp]
jne 0x40236d
jmp 0x402374
xor ebp, ebp
cmp ebp, dword [esp]
je 0x402374
inc edx
mov esi, dword [esp + 4]
jmp 0x402316
mov esi, dword [esp + 4]
mov ecx, dword [esp + 8]
add ecx, esi
mov eax, dword [esp + 0x18]
add eax, esi
movzx eax, word [eax + edx*2]
mov ecx, dword [ecx + eax*4]
add ecx, esi
push 0
push dword [esp + 0x14]
call ecx
mov dword [esp + 8], eax
cmp eax, dword [0x4edd2f]
jne 0x4023a7
push 2
call dword [esp + 0x10]
push esp
and al, 0x10
mov ecx, dword [0x4edd2f]
mov eax, dword [0x4edd63]
mov edx, dword [0x4edd4f]
mov dword [esp], edx
mov edx, dword [esi + 0x3c]
add edx, esi
mov ecx, dword [edx + ecx*8 + 0x78]
mov ebx, dword [esi + ecx + 0x20]