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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427e89
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x436300]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x436300]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov edi, ecx
mov byte [esp + 0x17], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xd0], ebx
push 1
push 0x43203c
lea esi, [esp + 0x74]
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
call fcn.00406050
mov byte [esp + 0xd0], 1
push ebx
push 0x431600
lea esi, [esp + 0x90]
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
call fcn.00406050
mov byte [esp + 0xd0], 2
push 1
push 0x432040
lea esi, [esp + 0xac]
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], bx
call fcn.00406050
mov byte [esp + 0xd0], 3
push ebx
push 0x431600
lea esi, [esp + 0x58]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
call fcn.00406050
push edi
mov byte [esp + 0xd4], 4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40d3ba
mov eax, edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d297
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x3c]
call fcn.00406050
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
push ecx
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x98]
mov byte [esp + 0xe0], 5
call fcn.00402cc0
add esp, 0x10
mov byte [esp + 0xd0], 4
cmp dword [esp + 0x4c], 8
jb 0x40d2fd
mov edx, dword [esp + 0x38]
push edx
call fcn.00411642
add esp, 4
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
jbe 0x40d30c
call fcn.0041162d
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov edi, esi
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x20], esi
jbe 0x40d325
call fcn.0041162d
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40d335
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x40d33a
call fcn.0041162d
cmp edi, esi
jae 0x40d3ba
cmp dword [esp + 0x2c], ebx
jne 0x40d349
call fcn.0041162d
mov edx, dword [esp + 0x2c]
cmp edi, dword [edx + 8]
jb 0x40d357
call fcn.0041162d
cmp dword [edi + 0x18], 8
jb 0x40d362
mov esi, dword [edi + 4]
jmp 0x40d365
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40d392
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d375
sub eax, edx
sar eax, 1
push eax
push esi
mov esi, dword [esp + 0x20]
add esi, 8
call fcn.00406050
mov ecx, dword [esp + 0x18]
call fcn.00401ef0
test al, al
je 0x40d3a4
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x2c]
cmp edi, dword [eax + 8]
jb 0x40d3b2
call fcn.0041162d
add edi, 0x1c
jmp 0x40d316
mov edi, 8
cmp dword [esp + 0x68], edi
jb 0x40d3d2
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00411642
add esp, 4
cmp dword [esp + 0xbc], edi
mov esi, 7
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
jb 0x40d3fd
mov edx, dword [esp + 0xa8]
push edx
call fcn.00411642
add esp, 4
cmp dword [esp + 0xa0], edi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
jb 0x40d42c
mov eax, dword [esp + 0x8c]
push eax
call fcn.00411642
add esp, 4
cmp dword [esp + 0x84], edi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
jb 0x40d458
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00411642
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
je 0x40d491
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push edx
call fcn.00408c00
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.00411642
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004111ac
mov esp, ebp
pop ebp
ret 4