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

Disassembly:
push 0xffffffffffffffff
push 0x40072fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x64]
mov eax, edx
push esi
mov ebx, ecx
mov dword [esp + 0x18], eax
push edi
lea esi, [ebp + 0x20]
cmp ebx, eax
je 0x4003c7a3
cmp dword [ebp + 8], 0
mov edi, dword [esp + 0x70]
mov dword [esp + 0x18], 0
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x6c], ecx
jbe 0x4003c4b3
cmp word [esi], 0
mov edi, ebx
jne 0x4003c3f0
cmp byte [esp + 0x74], 0
movzx edx, word [ebx]
je 0x4003c3c9
mov eax, dword [ecx]
push 1
mov ecx, dword [eax]
mov eax, edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x20]
push eax
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
test eax, eax
movzx eax, word [esp + 0x14]
je 0x4003c3c4
movzx eax, word [esp + 0x20]
movzx ecx, ax
jmp 0x4003c3cb
mov ecx, edx
movzx eax, word [esi]
cmp cx, ax
je 0x4003c487
test ax, ax
jne 0x4003c46c
add esi, 2
cmp word [esi], 0
je 0x4003c3e0
jmp 0x4003c46c
cmp edi, eax
je 0x4003c452
cmp byte [esp + 0x74], 0
movzx edx, word [edi]
je 0x4003c439
mov eax, dword [ecx]
push 1
mov ecx, dword [eax]
mov eax, edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0x20]
push eax
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
test eax, eax
movzx eax, word [esp + 0x14]
je 0x4003c430
movzx eax, word [esp + 0x24]
mov ecx, dword [esp + 0x6c]
movzx eax, ax
jmp 0x4003c43b
mov eax, edx
cmp ax, word [esi]
jne 0x4003c452
add esi, 2
add edi, 2
cmp word [esi], 0
je 0x4003c496
mov eax, dword [esp + 0x1c]
jmp 0x4003c3f0
cmp word [esi], 0
je 0x4003c496
jmp 0x4003c460
add esi, 2
cmp word [esi], 0
jne 0x4003c460
add esi, 2
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x6c]
jae 0x4003c4af
mov eax, dword [esp + 0x1c]
jmp 0x4003c380
cmp byte [ebp + 0x1c], 0
jne 0x4003c7a3
jmp 0x4003c7a0
cmp byte [ebp + 0x1c], 0
jne 0x4003c7a3
cmp edi, ebx
je 0x4003c7a0
mov ebx, edi
jmp 0x4003c7a3
mov edi, dword [esp + 0x70]
cmp byte [esp + 0x74], 0
movzx edx, word [ebx]
je 0x4003c4f7
mov eax, dword [ecx]
push 1
mov ecx, dword [eax]
mov eax, edx
mov dword [esp + 0x78], eax
lea eax, [esp + 0x74]
push eax
push 1
lea eax, [esp + 0x80]
push eax
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
test eax, eax
movzx eax, word [esp + 0x74]
je 0x4003c4f2
movzx eax, word [esp + 0x70]
movzx ecx, ax
jmp 0x4003c4f9
mov ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x70], ecx
test eax, eax
jne 0x4003c50d
cmp dword [ebp + 0x10], eax
je 0x4003c767
xor edx, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], dx
mov dword [esp + 0x64], edx
test eax, eax
je 0x4003c642
xor eax, eax
test dword [edi + 0x14], 0x200000
jne 0x4003c54f
mov word [esp + 0x28], cx
mov dword [esp + 0x38], 1
mov word [esp + 0x2a], ax
jmp 0x4003c5c2
mov word [esp + 0x76], ax
lea eax, [esp + 0x76]
push eax
lea eax, [esp + 0x78]
mov word [esp + 0x78], cx
mov ecx, dword [esp + 0x70]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.400338f0
mov edi, eax
lea eax, [esp + 0x28]
cmp eax, edi
je 0x4003c5af
cmp dword [esp + 0x3c], 8
jb 0x4003c58e
push dword [esp + 0x28]
call fcn.40053016
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.4000705d
cmp dword [esp + 0x54], 8
jb 0x4003c5c2
push dword [esp + 0x40]
call fcn.40053016
add esp, 4
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x4003c642
lea esp, [esp]
mov edx, esi
lea ecx, [esp + 0x28]
call fcn.40034110
test eax, eax
js 0x4003c620
nop
add esi, 2
cmp word [esi], 0
jne 0x4003c5e0
add esi, 2
lea ecx, [esp + 0x28]
mov edx, esi
call fcn.40034110
test eax, eax
jg 0x4003c630
cmp byte [ebp + 0x1c], 0
jne 0x4003c604
add ebx, 2
cmp dword [esp + 0x3c], 8
jb 0x4003c7a3
push dword [esp + 0x28]
call fcn.40053016
add esp, 4
jmp 0x4003c7a3
add esi, 2
cmp word [esi], 0
jne 0x4003c620
add esi, 2
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x4003c630
inc edi
add esi, 2
cmp edi, dword [ebp + 0xc]
jb 0x4003c5d0
cmp dword [ebp + 0x10], 0
je 0x4003c735
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov word [esp + 0x74], ax
xor eax, eax
mov word [esp + 0x76], ax
lea eax, [esp + 0x76]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.40033920
mov edi, eax
lea eax, [esp + 0x28]
cmp eax, edi
je 0x4003c6f4
cmp dword [esp + 0x3c], 8
jb 0x4003c691
push dword [esp + 0x28]
call fcn.40053016
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp dword [edi + 0x14], 8
jae 0x4003c6c7
mov eax, dword [edi + 0x10]
inc eax
je 0x4003c6d3
add eax, eax
push eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.40053920
add esp, 0xc
jmp 0x4003c6d3
mov eax, dword [edi]
mov dword [esp + 0x28], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esp + 0x54], 8
jb 0x4003c707
push dword [esp + 0x40]
call fcn.40053016
add esp, 4
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x4003c735
mov edi, edi
mov edx, esi
lea ecx, [esp + 0x28]
call fcn.40034110
test eax, eax
je 0x4003c5fb
add esi, 2
cmp word [esi], 0
jne 0x4003c723
inc edi
add esi, 2
cmp edi, dword [ebp + 0x10]
jb 0x4003c710
mov dword [esp + 0x64], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x4003c750
push dword [esp + 0x28]
call fcn.40053016
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
push dword [ebp + 0x14]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov ecx, edi
push esi
call fcn.40032230
cmp al, 1
je 0x4003c487
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4003c79a
push eax
push esi
mov ecx, edi
call fcn.40032230
test al, al
je 0x4003c487
cmp byte [ebp + 0x1c], 0
je 0x4003c7a3
add ebx, 2
mov ecx, dword [esp + 0x5c]
mov eax, ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x58
ret 0xc