Function at 0x4010d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
add eax, 0xc
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x130]
add ecx, 0xc
mov edx, dword [ebp - 0x12c]
cmp dword [edx], ecx
je 0x4013bc
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x10c], eax
push 0x104
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0x30]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x120], ecx
lea edx, [ebp - 0x108]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov cl, byte [eax]
mov byte [ebp - 0x10d], cl
mov edx, dword [ebp - 0x120]
cmp cl, byte [edx]
jne 0x4011d3
cmp byte [ebp - 0x10d], 0
je 0x4011c7
mov eax, dword [ebp - 0x11c]
mov cl, byte [eax + 1]
mov byte [ebp - 0x10e], cl
mov edx, dword [ebp - 0x120]
cmp cl, byte [edx + 1]
jne 0x4011d3
add dword [ebp - 0x11c], 2
add dword [ebp - 0x120], 2
cmp byte [ebp - 0x10e], 0
jne 0x401175
mov dword [ebp - 0x138], 0
jmp 0x4011de
sbb eax, eax
or eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x144], ecx
cmp dword [ebp - 0x144], 0
jne 0x4013a9
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x10c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
add edx, 0x18
mov dword [ebp - 0x150], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x10c]
add eax, dword [edx + ecx + 0x60]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x10c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x154], edx
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x10c]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x10c]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x114], 0
jmp 0x40129f
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
cmp eax, dword [edx + 0x14]
jae 0x4013a9
mov ecx, dword [ebp - 0x118]
mov edx, dword [ebp - 0x114]
cmp edx, dword [ecx + 0x14]
jae 0x4013a4
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 0x10c]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x158]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x10c]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dl, byte [ecx]
mov byte [ebp - 0x10f], dl
mov eax, dword [ebp - 0x128]
cmp dl, byte [eax]
jne 0x40137c
cmp byte [ebp - 0x10f], 0
je 0x401370
mov ecx, dword [ebp - 0x124]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x110], dl
mov eax, dword [ebp - 0x128]
cmp dl, byte [eax + 1]
jne 0x40137c
add dword [ebp - 0x124], 2
add dword [ebp - 0x128], 2
cmp byte [ebp - 0x110], 0
jne 0x40131e
mov dword [ebp - 0x13c], 0
jmp 0x401387
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x164], edx
cmp dword [ebp - 0x164], 0
jne 0x4013a4
mov eax, dword [ebp - 0x168]
jmp 0x4013be
jmp 0x401290
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
mov dword [ebp - 0x12c], ecx
jmp 0x40110d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015b5
mov esp, ebp
pop ebp
ret