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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473ab6
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x58], esi
je 0x403f3f
jmp 0x403d42
xor esi, esi
mov eax, ebx
call fcn.00403cd0
test al, al
jne 0x403f3f
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xdc], eax
xor eax, eax
mov dword [esp + 0x30], esi
mov word [esp + 0x20], cx
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], dx
mov dword [esp + 0x68], esi
mov word [esp + 0x58], cx
mov dword [esp + 0x84], esi
mov word [esp + 0x74], dx
mov dword [esp + 0xa0], esi
mov word [esp + 0x90], cx
mov dword [esp + 0xbc], esi
mov word [esp + 0xac], dx
mov dword [esp + 0xd8], esi
mov word [esp + 0xc8], ax
lea eax, [ebx + 0x5c]
mov dword [esp + 0xf8], esi
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x14], 1
mov byte [esp + 0xf8], 1
mov esi, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x58]
add ecx, esi
cmp esi, ecx
jbe 0x403e0b
call fcn.004544a7
mov edi, dword [ebx + 0x3c]
test edi, edi
jne 0x403e32
call fcn.004544a7
xor eax, eax
xor ecx, ecx
mov edx, dword [ecx + 0x1c]
add edx, dword [eax + 0x18]
cmp esi, edx
jb 0x403e2a
call fcn.004544a7
test edi, edi
je 0x403e38
mov eax, dword [edi]
jmp 0x403e3a
mov eax, dword [edi]
mov ecx, eax
jmp 0x403e1b
xor eax, eax
cmp dword [eax + 0x14], esi
ja 0x403e4c
test edi, edi
je 0x403e47
mov eax, dword [edi]
jmp 0x403e49
xor eax, eax
sub esi, dword [eax + 0x14]
test edi, edi
je 0x403e54
mov edi, dword [edi]
jmp 0x403e56
xor edi, edi
mov eax, dword [edi + 0x10]
mov esi, dword [eax + esi*4]
push 0xffffffffffffffff
push 0
mov eax, esi
lea ecx, [esp + 0x24]
call fcn.00404cc0
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x40]
call fcn.00404cc0
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x38]
lea ecx, [esp + 0x5c]
call fcn.00404cc0
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x54]
lea ecx, [esp + 0x78]
call fcn.00404cc0
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x70]
lea ecx, [esp + 0x94]
call fcn.00404cc0
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x8c]
lea ecx, [esp + 0xb0]
call fcn.00404cc0
push 0xffffffffffffffff
push edi
lea eax, [esi + 0xa8]
lea ecx, [esp + 0xcc]
call fcn.00404cc0
cmp dword [ebx + 0x58], edi
je 0x403f00
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x4c]
mov esi, dword [ecx + eax*4]
call fcn.004042d0
inc dword [ebx + 0x54]
mov eax, dword [ebx + 0x54]
cmp dword [ebx + 0x50], eax
ja 0x403ef7
mov dword [ebx + 0x54], edi
add dword [ebx + 0x58], 0xffffffff
jne 0x403f00
mov dword [ebx + 0x54], edi
mov byte [esp + 0xf8], 0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [esp + 0x1c]
mov eax, ebx
mov byte [esp + 0x14], 0
call fcn.004046e0
mov esi, edi
mov dword [esp + 0xf8], 0xffffffff
call fcn.004042d0
cmp dword [ebx + 0x58], 0
jne 0x403d40
mov dword [ebx + 0x10], 1
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0045300b
mov esp, ebp
pop ebp
ret