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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x704
mov eax, dword [0x7eba44]
xor eax, esp
mov dword [esp + 0x700], eax
mov eax, dword [ebp + 0x20]
xorps xmm0, xmm0
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x60]
push ebx
mov dword [esp + 0x5c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x74]
push esi
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x78]
push edi
mov dword [esp + 0x6c], eax
mov al, byte [0x7d3deb]
push 0x40
mov byte [esp + 0x74], al
lea eax, [esp + 0x75]
push 0
push eax
mov dword [esp + 0x1c], edx
movlpd qword [esp + 0x54], xmm0
call fcn.006dca70
mov al, byte [0x7d3deb]
add esp, 0xc
mov byte [esp + 0xb8], al
xorps xmm0, xmm0
lea eax, [esp + 0xb9]
movlpd qword [esp + 0x50], xmm0
push 0x40
push 0
push eax
call fcn.006dca70
mov al, byte [0x7d3deb]
add esp, 0xc
mov byte [esp + 0x300], al
lea eax, [esp + 0x301]
push 0x400
push 0
push eax
call fcn.006dca70
mov al, byte [0x7d3deb]
add esp, 0xc
mov byte [esp + 0x100], al
lea eax, [esp + 0x101]
push 0xff
push 0
push eax
call fcn.006dca70
mov al, byte [0x7d3deb]
add esp, 0xc
mov byte [esp + 0x200], al
lea eax, [esp + 0x201]
push 0xff
push 0
push eax
call fcn.006dca70
add esp, 0xc
mov byte [esp + 0x34], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x24], 0
test ebx, ebx
jne 0x478603
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x700]
xor ecx, esp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x18]
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test eax, eax
je 0x47861b
push dword [eax + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x4789d1
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x478637
push dword [eax + 4]
call ecx
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x4786f3
mov esi, dword [esi + 8]
test esi, esi
je 0x4786f3
nop dword [eax]
mov edi, dword [esi]
test edi, edi
jne 0x4788f8
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x4786e8
cmp byte [edi + 0x10], 0
je 0x47867b
mov eax, dword [edi + 0x14]
test eax, eax
je 0x47867b
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, dword [edi + 8]
jne 0x478686
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
cmp esi, dword [edi + 0xc]
jne 0x478691
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x47869c
dec eax
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4786a9
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4786b6
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4786c9
mov eax, dword [esi]
test eax, eax
je 0x4786c9
push eax
call ecx
add esp, 4
push esi
call fcn.006e60fe
add esp, 4
cmp byte [edi + 0x10], 0
je 0x4786e8
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4786e8
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebx + 0x10]
test esi, esi
jne 0x478905
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x47871b
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 8]
test eax, eax
je 0x47872f
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x70]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x478748
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp dword [esp + 0x18], 0
lea eax, [esp + 0xb8]
cmovne eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x300]
cmovne eax, dword [esp + 0x1c]
cmp dword [esp + 0x40], 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x100]
cmovne eax, dword [esp + 0x40]
cmp dword [esp + 0x44], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x200]
cmovne eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4787a9
mov al, byte [eax]
mov byte [esp + 0x34], al
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x4787b6
mov al, byte [eax]
mov byte [esp + 0x30], al
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x4787c3
mov al, byte [eax]
mov byte [esp + 0x2c], al
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4787d0
mov al, byte [eax]
mov byte [esp + 0x28], al
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x4787dd
mov al, byte [eax]
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x10]
test eax, eax
je 0x478a7a
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [esp + 0x38]
push dword [esp + 0x38]
push edi
push esi
push ecx
push dword [esp + 0x44]
mov ecx, ebx
push edx
mov edx, eax
call fcn.00475980
mov eax, dword [ebx + 0x14]
add esp, 0x38
test eax, eax
je 0x478831
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x478a66
mov esi, dword [esi + 8]
test esi, esi
je 0x478a66
nop word [eax + eax]
mov edi, dword [esi]
test edi, edi
jne 0x4789ea
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x4788e8
cmp byte [edi + 0x10], 0
je 0x47887b
mov eax, dword [edi + 0x14]
test eax, eax
je 0x47887b
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, dword [edi + 8]
jne 0x478886
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
cmp esi, dword [edi + 0xc]
jne 0x478891
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x47889c
dec eax
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4788a9
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4788b6
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4788c9
mov eax, dword [esi]
test eax, eax
je 0x4788c9
push eax
call ecx
add esp, 4
push esi
call fcn.006e60fe
add esp, 4
cmp byte [edi + 0x10], 0
je 0x4788e8
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4788e8
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x478a66
jmp 0x4789fa
push dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x478919
mov esi, dword [esi + 8]
test esi, esi
je 0x4786f3
mov edx, dword [esp + 0x10]
jmp 0x478650
mov eax, dword [edi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
push 0x40
push dword [edi + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x78]
push eax
call fcn.006e6a40
mov eax, dword [edi + 0x1c]
add esp, 0xc
mov esi, dword [edi + 0x18]
mov dword [esp + 0x38], eax
lea eax, [esp + 0xb8]
push 0x40
push dword [edi + 0x20]
push eax
call fcn.006e6a40
add esp, 0xc
lea eax, [esp + 0x300]
push 0x400
push dword [edi + 0x24]
push eax
call fcn.006e6a40
add esp, 0xc
lea eax, [esp + 0x100]
push 0xff
push dword [edi + 0x28]
push eax
call fcn.006e6a40
add esp, 0xc
lea eax, [esp + 0x200]
push 0xff
push dword [edi + 0x2c]
push eax
call fcn.006e6a40
movzx eax, byte [edi + 0x30]
add esp, 0xc
mov byte [esp + 0x34], al
movzx eax, byte [edi + 0x31]
mov byte [esp + 0x30], al
movzx eax, byte [edi + 0x32]
mov byte [esp + 0x2c], al
movzx eax, byte [edi + 0x33]
mov byte [esp + 0x28], al
movzx eax, byte [edi + 0x34]
mov edi, dword [esp + 0x38]
mov byte [esp + 0x24], al
jmp 0x47870b
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], eax
jmp 0x47871f
push dword [edi]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x478a07
mov esi, dword [esi + 8]
test esi, esi
jne 0x478850
jmp 0x478a66
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x478a1e
push dword [ebp + 0x54]
push dword [edi + 0x24]
push eax
call fcn.006e6a40
add esp, 0xc
mov eax, dword [esp + 0x60]
test eax, eax
je 0x478a35
push dword [ebp + 0x5c]
push dword [edi + 0x28]
push eax
call fcn.006e6a40
add esp, 0xc
mov eax, dword [esp + 0x64]
test eax, eax
je 0x478a4c
push dword [ebp + 0x64]
push dword [edi + 0x2c]
push eax
call fcn.006e6a40
add esp, 0xc
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x478a59
mov al, byte [edi + 0x33]
mov byte [ecx], al
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x478a66
mov al, byte [edi + 0x34]
mov byte [ecx], al
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x478a76
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
jmp 0x478a7d
or esi, 0xffffffff
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x478a8d
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x70c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret