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

Disassembly:
sub esp, 0x610
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x60c], eax
push ebx
mov ebx, dword [esp + 0x618]
push ebp
mov ebp, dword [esp + 0x620]
push esi
push edi
lea esi, [esp + 0x78]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebp
call fcn.0048a7c0
mov edi, esi
mov ecx, ebx
call fcn.00451280
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x451748
lea edi, [esp + 0x78]
call fcn.0048a8c0
mov eax, esi
jmp 0x45194c
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00420040
xor edi, edi
xor edx, edx
mov dword [esp + 0x18], edi
cmp dx, word [esp + 0x94]
jae 0x451941
mov dword [esp + 0x14], ebx
jmp 0x451794
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x208]
shr eax, 1
cmp edi, eax
jae 0x4517bc
mov ecx, dword [esp + 0x204]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ecx + 0x150]
cmp eax, ebx
je 0x4517bc
lea edx, [eax + 4]
jmp 0x4517be
xor edx, edx
xor esi, esi
mov dword [esp + 0x10], esi
cmp edx, ebx
je 0x4517e9
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4517d0
sub eax, esi
push eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0043c200
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
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
mov dword [esp + 0x5c], ebx
cmp esi, ebx
je 0x451865
lea eax, [esi + 4]
cmp eax, ebx
je 0x451865
cmp byte [eax], 0x23
jne 0x451865
lea edi, [esp + 0x2c]
call fcn.004516a0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x451853
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x451920
cmp eax, ebx
jne 0x451920
call fcn.0045f130
jmp 0x451920
lea ecx, [esp + 0x2c]
push edi
push ecx
lea eax, [esp + 0x18]
call fcn.0044ea20
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x451965
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x7c]
call fcn.0044f910
movq xmm0, qword [eax]
mov edx, dword [esp + 0x68]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [eax + 8]
movq qword [esp + 0x4c], xmm0
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
push eax
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
movq xmm0, qword [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
movq qword [esp + 0x64], xmm0
movq xmm0, qword [esp + 0x38]
push eax
movq qword [esp + 0x70], xmm0
call fcn.0044fb20
add esp, 0x18
lea edi, [esp + 0x2c]
mov esi, eax
call fcn.004516a0
lea ecx, [esp + 0x10]
call fcn.00401420
cmp esi, ebx
jne 0x451738
mov eax, dword [esp + 0x18]
movsx ecx, word [esp + 0x94]
add dword [esp + 0x14], 0x168
inc eax
mov dword [esp + 0x18], eax
cmp eax, ecx
jb 0x451790
lea edi, [esp + 0x78]
call fcn.0048a8c0
xor eax, eax
mov ecx, dword [esp + 0x61c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049ca20
add esp, 0x610
ret
lea edi, [esp + 0x2c]
call fcn.004516a0
cmp esi, ebx
je 0x4519a2
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x451999
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edi, [esp + 0x78]
call fcn.0048a8c0
mov eax, ebp
jmp 0x45194c
cmp eax, ebx
jne 0x4519a2
call fcn.0045f130
lea edi, [esp + 0x78]
call fcn.0048a8c0
mov eax, ebp
jmp 0x45194c