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

Disassembly:
sub esp, 0x624
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
mov ebx, dword [esp + 0x62c]
push ebp
mov ebp, dword [esp + 0x634]
push esi
push edi
lea esi, [esp + 0x80]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x24], ebp
call fcn.0048ac60
mov edi, esi
mov ecx, ebx
call fcn.00451590
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x451996
mov eax, dword [ebp + 0xa4]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
cmp cx, word [esp + 0x9c]
jae 0x4518d7
mov dword [esp + 0x1c], ebx
jmp 0x451704
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x210]
shr edx, 1
cmp edi, edx
jae 0x45172c
mov eax, dword [esp + 0x20c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax + 0x150]
cmp eax, ebx
je 0x45172c
lea edx, [eax + 4]
jmp 0x45172e
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], esi
cmp edx, ebx
je 0x451759
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451740
sub eax, esi
push eax
push edx
lea edx, [esp + 0x1c]
push edx
call fcn.0043c500
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
cmp esi, ebx
je 0x4517d5
lea eax, [esi + 4]
cmp eax, ebx
je 0x4517d5
cmp byte [eax], 0x23
jne 0x4517d5
lea edi, [esp + 0x28]
call fcn.004519b0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x4517c3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4518b6
cmp eax, ebx
jne 0x4518b6
call fcn.0045f5a0
jmp 0x4518b6
lea eax, [esp + 0x28]
push edi
push eax
lea eax, [esp + 0x1c]
call fcn.0044ed30
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x451934
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x84]
call fcn.0044fc20
movq xmm0, qword [eax]
mov ecx, dword [esp + 0x60]
movq qword [esp + 0x40], xmm0
movq xmm0, qword [eax + 8]
movq qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
add esp, 4
cmp dword [esp + 0x20], ebx
push ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
movq xmm0, qword [esp + 0x6c]
push ecx
lea edx, [esp + 0x38]
movq qword [esp + 0x5c], xmm0
movq xmm0, qword [esp + 0x78]
push edx
movq qword [esp + 0x68], xmm0
sete byte [esp + 0x27]
call fcn.0044fe30
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x451984
cmp byte [esp + 0x13], bl
je 0x4518a4
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x4518a4
mov edi, dword [esp + 0x24]
call fcn.0046f7f0
lea edi, [esp + 0x28]
call fcn.004519b0
lea ecx, [esp + 0x14]
call fcn.00401420
mov eax, dword [esp + 0x18]
movsx ecx, word [esp + 0x9c]
add dword [esp + 0x1c], 0x168
inc eax
mov dword [esp + 0x18], eax
cmp eax, ecx
jb 0x451700
mov esi, dword [0x5670ec]
mov eax, dword [esi + 0x5fc]
add esi, 0x60
cmp eax, ebx
je 0x4518f3
push eax
call fcn.0049eebb
add esp, 4
lea edx, [esp + 0x24]
push edx
lea edi, [esi + 0x5a0]
mov dword [esi + 0x59c], ebx
mov dword [esp + 0x28], ebx
call fcn.00401250
lea edi, [esp + 0x80]
call fcn.0048ad60
xor eax, eax
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049ceb0
add esp, 0x624
ret
lea edi, [esp + 0x28]
call fcn.004519b0
cmp esi, ebx
je 0x451974
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x45196b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edi, [esp + 0x80]
call fcn.0048ad60
mov eax, ebp
jmp 0x45191b
cmp eax, ebx
jne 0x451974
call fcn.0045f5a0
lea edi, [esp + 0x80]
call fcn.0048ad60
mov eax, ebp
jmp 0x45191b
lea edi, [esp + 0x28]
call fcn.004519b0
lea ecx, [esp + 0x14]
call fcn.00401420
lea edi, [esp + 0x80]
call fcn.0048ad60
mov eax, esi
jmp 0x45191b