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

Disassembly:
push 0xffffffffffffffff
push 0x42f273
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov dword [esi], 0x432fbc
lea edi, [esi + 0x90]
push edi
mov dword [esp + 0x2c], 0xd
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x48]
push edi
mov byte [esp + 0x13], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0xf]
xor ebx, ebx
cmp al, bl
je 0x40de8b
mov ecx, esi
call fcn.0040dda0
lea eax, [esi + 0xc]
lea ecx, [esi + 4]
mov dword [esp + 0x14], eax
mov dword [eax + 4], eax
mov dword [eax], eax
mov eax, dword [ecx]
cmp eax, ecx
push ebp
mov dword [esp + 0x14], ecx
je 0x40deda
mov ecx, dword [eax - 4]
cmp ecx, ebx
mov ebp, dword [eax]
lea edi, [eax - 4]
je 0x40deb7
mov edx, dword [ecx]
push 1
call dword [edx]
lea eax, [edi + 0xc]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 4]
push edi
mov dword [eax + 4], eax
mov dword [eax], eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ebp, ecx
mov eax, ebp
jne 0x40dea5
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0xa8]
push eax
call edi
lea eax, [esi + 0x90]
push eax
call edi
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
lea edi, [esi + 0x84]
push eax
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
mov byte [esp + 0x38], 0xa
call fcn.004072b0
mov eax, dword [edi + 4]
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov edx, dword [esi + 0x78]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push edx
mov byte [esp + 0x30], 9
call edi
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x40df43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0x70]
push edx
call edi
mov eax, dword [esi + 0x6c]
cmp eax, ebx
je 0x40df56
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0x68]
cmp ecx, ebx
mov byte [esp + 0x2c], 8
je 0x40df68
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 0x44]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 0x432b20
mov dword [esi + 0x40], ebp
je 0x40df8a
cmp eax, ebx
je 0x40df87
push eax
call edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
mov dword [esi + 0x38], ebp
pop ebp
je 0x40dfa2
cmp eax, ebx
je 0x40df9f
push eax
call edi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x3c], ebx
mov ecx, dword [esi + 0x30]
cmp ecx, ebx
mov byte [esp + 0x28], 5
je 0x40dfb6
call fcn.0040fc10
mov dword [esi + 0x30], ebx
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
mov byte [esp + 0x28], 4
je 0x40dfca
call fcn.0040fc10
mov dword [esi + 0x2c], ebx
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
mov byte [esp + 0x28], 3
je 0x40dfde
call fcn.0040fc10
mov dword [esi + 0x28], ebx
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
mov byte [esp + 0x28], 2
je 0x40dff2
call fcn.0040fc10
mov dword [esi + 0x24], ebx
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
mov byte [esp + 0x28], 1
je 0x40e006
call fcn.0040fc10
mov dword [esi + 0x20], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], eax
mov dword [eax], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + 4], eax
mov dword [eax], eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret