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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp]
mov edx, dword [eax + 4]
call edx
test al, al
jne 0x45e1a7
xor ebx, ebx
cmp dword [ebp + 0x4c], ebx
je 0x45e1a7
mov eax, dword [ebp + 0x80]
cmp eax, dword [ebp + 0x84]
je 0x45e15d
cmp eax, 0xffffffff
je 0x45e15d
lea edi, [ebp - 4]
mov esi, edi
neg esi
sbb esi, esi
mov dword [esp + 0x24], ebx
mov word [esp + 0x38], 1
mov word [esp + 0x3a], bx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
and esi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
mov dword [esp + 0x10], eax
je 0x45de3e
cmp ecx, eax
jne 0x45de3e
add dword [esi + 0x24], 1
jmp 0x45de62
cmp byte [esi + 0xc], bl
je 0x45de4f
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x45de58
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ecx
mov edx, dword [ebp + 0x8c]
fld dword [ebp + 0x94]
mov ecx, dword [ebp + 0x90]
fstp dword [esp + 0x58]
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 0x98]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x60], edx
mov byte [ebp + 0x9c], bl
mov edx, dword [ecx]
mov dword [esp + 0x10], eax
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x88], eax
cmp dword [esi + 0x24], ebx
mov dword [esp + 0x20], ecx
je 0x45decd
cmp dword [esi + 0x20], ebx
je 0x45decd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x20], eax
jne 0x45decd
add dword [esi + 0x24], 0xffffffff
jmp 0x45deea
cmp byte [esi + 0xc], bl
mov dword [esi + 0x20], ebx
je 0x45dee1
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45deea
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x58ad04], ebx
mov dword [esp + 0x1c], eax
je 0x45df19
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.00470bb0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x45df23
xor edx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x64]
fld dword [esp + 0x58]
mov dword [esp + 0x70], ecx
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x74], ecx
or ecx, 0xffffffff
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x94], ecx
mov ecx, dword [ebp + 0x78]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
mov byte [esp + 0x78], 1
mov byte [esp + 0x90], bl
mov byte [esp + 0x91], bl
mov byte [esp + 0x92], bl
mov byte [esp + 0x93], 1
je 0x45dfb4
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp byte [ebp + 0x9c], bl
je 0x45e014
cmp dword [0x58ad04], ebx
je 0x45dfcb
push eax
push edx
call fcn.00470f90
cmp dword [esp + 0x50], ebx
je 0x45e006
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x45dff5
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x45dffe
mov eax, dword [esp + 0x4c]
push eax
call fcn.0044d390
add esp, 4
mov dword [esp + 0x4c], ebx
mov esi, dword [esp + 0x50]
call fcn.004d12a0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
lea esi, [esp + 0x24]
call fcn.00458440
jmp 0x45e195
cmp edx, ebx
je 0x45e039
cmp dword [edx], ebx
je 0x45e039
cmp dword [0x58ad04], ebx
je 0x45e02b
push eax
push edx
call fcn.00470f90
lea edi, [esp + 0x24]
call fcn.0045e1c0
jmp 0x45e195
neg edi
sbb edi, edi
and edi, ebp
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x45e05a
cmp eax, edi
jne 0x45e05a
add dword [esi + 0x24], 1
jmp 0x45e07a
cmp byte [esi + 0xc], bl
je 0x45e06b
lea ecx, [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x45e074
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], edi
mov ecx, dword [esp + 0x20]
cmp ecx, dword [ebp + 0x4c]
je 0x45e0e0
cmp dword [esi + 0x24], ebx
je 0x45e09e
cmp dword [esi + 0x20], ebx
je 0x45e09e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x20], eax
jne 0x45e09e
add dword [esi + 0x24], 0xffffffff
jmp 0x45e0bb
cmp byte [esi + 0xc], bl
mov dword [esi + 0x20], ebx
je 0x45e0b2
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45e0bb
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp dword [0x58ad04], ebx
je 0x45e0d2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00470f90
lea edi, [esp + 0x24]
call fcn.0045e1c0
jmp 0x45e195
lea eax, [ebp + 0x50]
push eax
lea eax, [esp + 0x28]
call fcn.00458520
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x84], ecx
je 0x45e105
mov byte [eax + 0x367], 1
cmp dword [esi + 0x24], ebx
je 0x45e120
cmp dword [esi + 0x20], ebx
je 0x45e120
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x20], eax
jne 0x45e120
add dword [esi + 0x24], 0xffffffff
jmp 0x45e13d
cmp byte [esi + 0xc], bl
mov dword [esi + 0x20], ebx
je 0x45e134
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45e13d
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp dword [0x58ad04], ebx
je 0x45e154
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.00470f90
lea edi, [esp + 0x24]
call fcn.0045e1c0
mov eax, dword [ebp + 0xa0]
mov ecx, dword [0x59cb00]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x78], ebx
push 2
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x80
je 0x45e1a7
cmp eax, ebx
je 0x45e195
cmp eax, 1
je 0x45e1a7
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
test al, al
je 0x45ddb4
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret