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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aae2b
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x5116ec]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x5116ec]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor ebx, ebx
mov edi, edx
mov eax, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x396f50
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.002f8800
mov dword [esp + 0x1a0], ebx
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x396f9c
cmp dword [esp + 0x84], 0x10
mov ecx, dword [esp + 0x70]
jae 0x396f88
lea ecx, [esp + 0x70]
cmp byte [ecx + eax - 1], 0x5c
je 0x396f9c
push 0x5c
push 1
lea ecx, [esp + 0x78]
call fcn.002f97c0
call fcn.003976b0
test al, al
jne 0x396fcf
mov dword [esp + 0x1a0], 0xffffffff
cmp dword [esp + 0x84], 0x10
jb 0x396fc7
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00438a36
add esp, 4
or eax, 0xffffffff
jmp 0x39726c
mov esi, dword [edi + 0x38]
cmp esi, ebx
jne 0x397004
mov esi, 0xffffff9a
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x396feb
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
test esi, esi
je 0x397246
cmp esi, 0xffffff9c
je 0x397246
or esi, 0xffffffff
jmp 0x397248
mov edx, dword [esi + 0x44]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esi + 0x98]
push eax
lea ecx, [esi + 0x48]
push ecx
mov eax, esi
mov dword [esi + 0x34], edx
mov dword [esi + 0x30], ebx
call fcn.0040ba40
xor edx, edx
add esp, 0x20
cmp eax, ebx
sete dl
mov dword [esi + 0x38], edx
mov esi, eax
cmp eax, ebx
jne 0x396fdb
mov eax, dword [edi + 0x38]
push 0
push 0
push 0
push 0
push 0x100
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x34]
push 0
push edx
call fcn.0040ba40
add esp, 0x20
cmp byte [esp + 0x8c], 0
lea ecx, [esp + 0x8c]
je 0x39707e
cmp byte [ecx], 0x2f
jne 0x397078
mov byte [ecx], 0x5c
inc ecx
cmp byte [ecx], 0
jne 0x397070
mov esi, eax
test eax, eax
jne 0x396fdb
mov ebx, dword [esp + 0x3c]
inc ebx
lea edi, [esp + 0x8c]
cmp ebx, 0x100
jbe 0x3970e8
push ebx
call fcn.00437a7c
add esp, 4
push esi
push esi
push esi
push esi
mov edi, eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x38]
push ebx
push edi
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.0040ba40
add esp, 0x20
mov ecx, edi
test edi, edi
je 0x3970de
cmp byte [edi], 0
je 0x3970de
lea ecx, [ecx]
cmp byte [ecx], 0x2f
jne 0x3970d8
mov byte [ecx], 0x5c
inc ecx
cmp byte [ecx], 0
jne 0x3970d0
mov esi, eax
test eax, eax
jne 0x396fdb
cmp byte [ebx + edi - 1], 0x5c
je 0x397166
mov ecx, str..readme
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x397116
test dl, dl
je 0x397112
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x397116
add eax, 2
add ecx, 2
test dl, dl
jne 0x3970f6
xor eax, eax
jmp 0x39711b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x397166
mov eax, dword [esp + 0x70]
mov ebx, 0x10
cmp dword [esp + 0x84], ebx
jae 0x397135
lea eax, [esp + 0x70]
mov edx, dword [esp + 0x80]
push edx
push edi
push eax
call fcn.0044f420
add esp, 0xc
test eax, eax
jne 0x397166
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x18]
lea ecx, [ecx + edi]
call fcn.0038e8b0
test al, al
je 0x3971fc
lea ecx, [esp + 0x8c]
cmp edi, ecx
je 0x39717a
push edi
call fcn.00439081
add esp, 4
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0x38]
test esi, esi
je 0x396fd6
cmp dword [esi + 0x38], 0
je 0x3971f2
mov eax, dword [esi + 0x24]
cmp eax, 0xffff
je 0x3971a1
mov ecx, dword [esi + 0x30]
inc ecx
cmp ecx, eax
je 0x3971f2
mov edx, dword [esi + 0x70]
add edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
inc dword [esi + 0x30]
push 0
push 0
push 0
push 0
lea ecx, [edx + eax + 0x2e]
add dword [esi + 0x34], ecx
push 0
push 0
lea edx, [esi + 0x98]
push edx
lea eax, [esi + 0x48]
push eax
mov eax, esi
call fcn.0040ba40
xor ecx, ecx
add esp, 0x20
test eax, eax
sete cl
mov dword [esi + 0x38], ecx
mov esi, eax
test eax, eax
jne 0x396fdb
mov edi, dword [esp + 0x14]
jmp 0x397038
mov esi, 0xffffff9c
jmp 0x396fdb
lea edx, [esp + 0x8c]
cmp edi, edx
je 0x397210
push edi
call fcn.00439081
add esp, 4
test esi, esi
je 0x39721e
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x1a0], 0xffffffff
cmp dword [esp + 0x84], ebx
jb 0x39723f
mov eax, dword [esp + 0x70]
push eax
call fcn.00438a36
add esp, 4
mov eax, 1
jmp 0x39726c
xor esi, esi
mov dword [esp + 0x1a0], 0xffffffff
cmp dword [esp + 0x84], 0x10
jb 0x39726a
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00438a36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00438a41
mov esp, ebp
pop ebp
ret 4