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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
mov esi, dword [0x7efe28]
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x493e7c
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, str.NULL
test eax, eax
mov edx, ecx
push ebx
cmovne edx, eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x1c], edx
cmovne ebx, eax
mov eax, dword [ebp + 0x18]
test eax, eax
mov dword [ebp - 0x20], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x20]
test eax, eax
mov dword [ebp - 0x24], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x28]
test eax, eax
mov dword [ebp - 0x28], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x30]
test eax, eax
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x40]
test eax, eax
mov dword [ebp - 0x30], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x48]
test eax, eax
mov dword [ebp - 0x34], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x50]
test eax, eax
mov dword [ebp - 0x38], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x58]
test eax, eax
mov dword [ebp - 0x3c], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x60]
test eax, eax
mov dword [ebp - 0x40], ebx
mov ebx, ecx
cmovne ebx, eax
mov eax, dword [ebp + 0x70]
test eax, eax
mov dword [ebp - 0x44], ebx
cmovne ecx, eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x48], ecx
test eax, eax
je 0x493f29
mov dword [eax], 0
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x493f39
mov dword [eax], 0
mov eax, dword [esi + 0x14]
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test eax, eax
je 0x493f54
push dword [eax + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x494428
push edi
mov edi, dword [eax + 8]
mov dword [ebp - 4], edi
test edi, edi
je 0x494427
mov ebx, dword [edi]
mov dword [ebp - 0x60], ebx
test ebx, ebx
jne 0x49402a
mov esi, dword [esi + 0x10]
test esi, esi
je 0x49400e
cmp byte [esi + 0x10], bl
je 0x493f9d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x493f9d
push dword [eax + 4]
call ecx
cmp edi, dword [esi + 8]
jne 0x493fa8
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
cmp edi, dword [esi + 0xc]
jne 0x493fb3
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x493fbe
dec eax
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x493fcb
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x493fd8
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x493feb
mov eax, dword [edi]
test eax, eax
je 0x493feb
push eax
call ecx
add esp, 4
push edi
call fcn.006e60fe
add esp, 4
cmp byte [esi + 0x10], 0
je 0x49400e
mov eax, dword [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x494014
push dword [eax + 4]
call ebx
jmp 0x494014
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xc]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x494427
mov edi, dword [eax + 8]
jmp 0x494445
push 0
push 0
push 0
push edx
lea eax, [ebx + 0x48]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
push eax
push eax
push eax
push dword [ebp - 0x20]
lea eax, [ebx + 0x58]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
push eax
push eax
push eax
push dword [ebp - 0x24]
lea eax, [ebx + 0x68]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
push eax
push eax
push eax
push dword [ebp - 0x28]
lea eax, [ebx + 0x78]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
push eax
push eax
push eax
push dword [ebp - 0x2c]
lea eax, [ebx + 0x88]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
push eax
push eax
push eax
push dword [ebp - 0x30]
lea eax, [ebx + 0x98]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
movzx eax, byte [ebx + 0x18]
sub eax, 0
je 0x4940fe
sub eax, 1
je 0x4940ea
sub eax, 1
jne 0x49443f
movzx eax, byte [ebp + 0x38]
jmp 0x4940f2
mov al, byte [ebp + 0x38]
dec al
movzx eax, al
neg eax
sbb eax, eax
test eax, eax
jne 0x49443f
push 0
push 0
push 0
push dword [ebp - 0x34]
lea eax, [ebx + 0xa8]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
cmp byte [ebp + 0x44], al
je 0x494140
push eax
push eax
push eax
push dword [ebp - 0x38]
lea eax, [ebx + 0xb8]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
push 0
push 0
push 0
push dword [ebp - 0x3c]
lea eax, [ebx + 0xc8]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
cmp byte [ebp + 0x54], al
je 0x494182
push eax
push eax
push eax
push dword [ebp - 0x40]
lea eax, [ebx + 0xd8]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
cmp byte [ebp + 0x5c], 0
je 0x4941a8
push 0
push 0
push 0
push dword [ebp - 0x44]
lea eax, [ebx + 0xe8]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
mov cl, byte [ebx + 0x30]
movzx eax, cl
sub eax, 0
je 0x4941ca
sub eax, 1
je 0x4941c1
sub eax, 1
jne 0x49443f
cmp cl, byte [ebp + 0x68]
jne 0x49443f
push 0
push 0
push 0
push dword [ebp - 0x48]
lea eax, [ebx + 0xf8]
push eax
call fcn.006da360
add esp, 0x14
test eax, eax
jne 0x49443f
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 8], ecx
test eax, eax
je 0x494406
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4943fe
nop dword [eax + eax]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x49443c
mov ebx, dword [eax]
mov ecx, ebx
mov dword [ebp - 0x50], ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494227
mov edi, dword [ebp + 0x78]
sub ecx, edx
mov dword [ebp - 0x10], 0
lea esi, [ecx + 1]
mov dword [ebp - 0x54], esi
test edi, edi
je 0x49443c
mov eax, dword [edi + 0x24]
test eax, eax
je 0x49443c
test ebx, ebx
je 0x49443c
test esi, esi
je 0x49443c
xor ecx, ecx
push esi
push ebx
mov dword [ebp - 0x14], ecx
call eax
xor edx, edx
add esp, 8
div dword [edi + 4]
mov eax, dword [edi + 0x2c]
shl edx, 2
mov dword [ebp - 0x58], edx
mov eax, dword [edx + eax]
test eax, eax
je 0x49443c
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x49443c
mov eax, dword [ebx]
mov edi, ebx
test eax, eax
jne 0x494346
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebx + 8]
mov ebx, ecx
mov dword [ebp - 0x4c], ecx
mov eax, dword [eax + 0x2c]
mov esi, dword [edx + eax]
test esi, esi
je 0x4943ae
cmp byte [esi + 0x10], 0
je 0x4942ce
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4942ce
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x494329
cmp edi, dword [esi + 8]
jne 0x4942dd
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
cmp edi, dword [esi + 0xc]
jne 0x4942e8
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4942f3
dec eax
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x494300
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x49430d
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x494320
mov eax, dword [edi]
test eax, eax
je 0x494320
push eax
call ecx
add esp, 4
push edi
call fcn.006e60fe
add esp, 4
cmp byte [esi + 0x10], 0
mov edi, dword [ebp - 0x4c]
mov ebx, edi
je 0x4943ae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4943ae
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4943ae
cmp dword [eax + 4], esi
jne 0x4943ab
mov edx, dword [eax]
mov eax, dword [ebp - 0x50]
sub esi, 4
jb 0x494366
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x49436b
add edx, 4
add eax, 4
sub esi, 4
jae 0x494355
cmp esi, 0xfffffffc
je 0x494398
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4943ab
cmp esi, 0xfffffffd
je 0x494398
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4943ab
cmp esi, 0xfffffffe
je 0x494398
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4943ab
cmp esi, 0xffffffff
je 0x494398
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
jne 0x4943ab
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x4943a7
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
inc esi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebx + 8]
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
test ebx, ebx
jne 0x494293
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49443c
mov eax, dword [ebp - 0x5c]
push 0
push 0
push 0
push ecx
add eax, 8
push eax
call fcn.006da360
mov ecx, dword [ebp - 8]
add esp, 0x14
test eax, eax
jne 0x4943e4
inc ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x494210
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x64]
cmp ecx, dword [eax + 4]
jne 0x49443f
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x494412
mov eax, dword [ebx + 0x40]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x80]
test ecx, ecx
je 0x494421
mov eax, dword [ebx + 0x44]
mov dword [ecx], eax
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x494434
push dword [eax + 4]
call ebx
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
mov edi, dword [edi + 8]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 4], edi
test edi, edi
je 0x494421
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x1c]
jmp 0x493f74