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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f7e88
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
call fcn.00518d60
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x88], esi
call fcn.00518d60
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x88], 1
mov eax, dword [edi + 0x34]
cmp eax, esi
je 0x45a9a9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
mov ebx, dword [eax]
add edi, 8
cmp edi, edi
mov esi, dword [edi + 4]
je 0x45a9bd
call fcn.005b8b18
cmp ebx, esi
je 0x45aa6a
cmp ebx, dword [edi + 4]
jne 0x45a9cf
call fcn.005b8b18
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], 2
lea esi, [ebx + 8]
jne 0x45aa52
cmp ebx, dword [edi + 4]
jne 0x45a9e5
call fcn.005b8b18
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
sub eax, 1
je 0x45aa24
sub eax, 1
jne 0x45aa52
cmp ebx, dword [edi + 4]
jne 0x45a9fe
call fcn.005b8b18
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
push esi
push edx
push eax
call fcn.0045ace0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.005684b0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
jmp 0x45aa52
cmp ebx, dword [edi + 4]
jne 0x45aa2e
call fcn.005b8b18
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
lea edi, [eax + 4]
push esi
push ecx
push eax
call fcn.0045ace0
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.005684b0
mov dword [edi], esi
mov edx, dword [esi + 4]
mov dword [edx], esi
mov edi, dword [esp + 0x1c]
add edi, 8
cmp ebx, dword [edi + 4]
jne 0x45aa63
call fcn.005b8b18
mov ebx, dword [ebx]
jmp 0x45a9b1
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
lea ecx, [esi + eax]
xor edi, edi
cmp ecx, edi
jne 0x45ab0b
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x34]
cmp eax, edi
je 0x45aa91
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x28], edi
je 0x45aac5
lea esp, [esp]
mov esi, dword [eax]
push eax
call fcn.0059b877
mov ecx, dword [esp + 0x28]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x45aab0
push ecx
call fcn.0059b877
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x18]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x18], edi
je 0x45acb5
mov esi, dword [eax]
push eax
call fcn.0059b877
mov ecx, dword [esp + 0x18]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x45aaf1
jmp 0x45acb5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x18]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
mov ebx, eax
imul esi, ebx
cmp edi, dword [esp + 0x14]
je 0x45ab43
mov edx, dword [edi + 8]
mov dword [edx + 0xd0], ebx
cmp edi, dword [esp + 0x14]
jne 0x45ab3f
call fcn.005b8b18
mov edi, dword [edi]
jmp 0x45ab25
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x34]
xor ebx, ebx
cmp eax, ebx
je 0x45ab57
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00429490
cmp dword [eax + 0x18], ebx
je 0x45ac47
call fcn.00429490
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x2c]
push edx
call eax
mov byte [esp + 0x88], 2
mov ecx, dword [edi + 0x1c]
shl ecx, 0xa
shl esi, 0xa
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ecx
call fcn.00429490
mov edx, dword [esp + 0x2c]
mov edi, dword [eax + 0x18]
sub esp, 0x48
mov esi, esp
mov dword [esi], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x64], esp
push 0xffffffffffffffff
lea ecx, [esi + 8]
mov dword [esi + 4], eax
push ebx
lea edx, [esp + 0x84]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], 0
call fcn.0040b390
mov eax, dword [esp + 0x98]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x9c]
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0xa0]
mov dword [esi + 0x2c], edx
mov eax, dword [esp + 0xa4]
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0xa8]
mov dword [esi + 0x34], ecx
mov edx, dword [esp + 0xac]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0xb0]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0xb4]
mov dword [esi + 0x40], ecx
mov edx, dword [esp + 0xb8]
mov dword [esi + 0x44], edx
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
cmp dword [esp + 0x4c], 0x10
jb 0x45ac47
mov eax, dword [esp + 0x38]
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x28], ebx
je 0x45ac77
mov esi, dword [eax]
push eax
call fcn.0059b877
mov ecx, dword [esp + 0x28]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x45ac62
push ecx
call fcn.0059b877
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x18]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x18], ebx
je 0x45acb5
nop
mov esi, dword [eax]
push eax
call fcn.0059b877
mov ecx, dword [esp + 0x18]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x45aca0
push ecx
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret