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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c037
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c8
mov eax, dword [0x43735c]
xor eax, ebp
push ebx
mov dword [esp + 0x9c4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea eax, [esi + 0x83c]
push edi
lea edi, [eax + 4]
push edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x9dc], ebx
call fcn.0040af80
push ebx
lea ecx, [esp + 0x84]
call fcn.0040fed0
mov ecx, dword [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x88]
mov byte [esp + 0x9e4], 1
call fcn.00410940
test eax, eax
lea ecx, [esp + 0x80]
je 0x40b51a
push ebx
call fcn.00410240
cmp dword [esp + 0x8ac], 0x15
je 0x40b4f9
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x8c0]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1e864]
add eax, 0xb3
lea edx, [eax + eax*2]
lea eax, [esi + edx*4]
mov edx, dword [esp + 0xa0]
push eax
lea ecx, [esp + 0x8c4]
push ecx
push edx
mov ecx, esi
call fcn.00409d20
push ebx
lea ecx, [esp + 0x84]
call fcn.00410240
push ebx
lea ecx, [esp + 0x84]
call fcn.00410240
mov eax, dword [esi + 0x1e864]
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x868]
mov eax, dword [esp + 0xa0]
push ecx
lea edx, [esp + 0x8c4]
push edx
push eax
mov ecx, esi
call fcn.00409d20
lea eax, [esp + 0x8c0]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b310
sub eax, edi
push eax
lea ecx, [esp + 0x8c4]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401c50
lea edx, [esp + 0x1c]
lea edi, [esi + 0x858]
push edx
mov ecx, edi
mov byte [esp + 0x9e0], 2
call fcn.00401a50
cmp eax, dword [edi + 4]
mov dword [esp + 0x38], eax
je 0x40b37a
cmp dword [eax + 0x24], 0x10
mov ecx, dword [eax + 0x20]
jb 0x40b35c
mov eax, dword [eax + 0x10]
jmp 0x40b35f
add eax, 0x10
push ecx
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.004014d0
test eax, eax
jl 0x40b37a
lea eax, [esp + 0x38]
jmp 0x40b385
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
mov edi, dword [eax]
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x9dc], 1
jb 0x40b3a3
mov edx, dword [esp + 0x20]
push edx
call fcn.00425a3b
add esp, 4
cmp edi, dword [esi + 0x85c]
mov edx, 0xf
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
je 0x40b3e5
mov ecx, dword [edi + 0x28]
lea eax, [ecx + ecx*2]
mov eax, dword [esi + eax*4 + 0x86c]
cmp eax, 0xffffffff
mov dword [esp + 0x10], ecx
je 0x40b3e5
lea ecx, [eax + eax*2]
mov dword [esp + 0x10], eax
mov eax, dword [esi + ecx*4 + 0x86c]
cmp eax, 0xffffffff
jne 0x40b3d2
lea eax, [esp + 0x8c0]
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea edx, [eax + 1]
jmp 0x40b400
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b400
sub eax, edx
push eax
lea edx, [esp + 0x8c4]
push edx
lea ecx, [esp + 0x48]
call fcn.00401c50
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x48]
mov edi, 0xf
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x9e8], 3
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00401b60
mov ecx, dword [esi + 0x1e864]
mov dword [esp + 0x78], ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esi + 0x858]
mov byte [esp + 0x9e4], 4
call fcn.0040afe0
cmp dword [esp + 0x74], 0x10
jb 0x40b483
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00425a3b
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0x9dc], 1
jb 0x40b4ab
mov edx, dword [esp + 0x44]
push edx
call fcn.00425a3b
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], edi
mov edi, dword [esi + 0x1e864]
inc edi
cmp ecx, 0xffffffff
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esi + 0x1e864], edi
mov eax, edi
je 0x40b4da
dec eax
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0x86c], eax
push ebx
lea ecx, [esp + 0x84]
call fcn.00410240
cmp dword [esp + 0x8ac], 0x15
jne 0x40b271
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x80]
mov byte [esp + 0x9dc], bl
call fcn.0040ff60
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x40b52f
mov byte [esp + 0x9dc], bl
call fcn.0040ff60
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x9d4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x9cc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415465
mov esp, ebp
pop ebp
ret 4