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

Disassembly:
push 0xffffffffffffffff
push 0x55c0ca
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
mov eax, dword [edi + 0x7c]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov ebx, dword [eax + 0x1804]
cmp ebx, ebp
mov dword [esp + 0x1c], ebp
je 0x494877
push 0x5703b8
lea ecx, [esp + 0x1c]
call fcn.0040c150
cmp ebx, ebp
mov dword [esp + 0x4c], ebp
mov eax, ebx
je 0x494837
mov esi, dword [eax + 8]
cmp esi, ebp
mov ebx, dword [ebx]
jne 0x494728
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49482d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49482d
cmp dword [esi + 0x24], 1
je 0x49475f
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49482d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49482d
cmp dword [esi + 0x1c], ebp
jne 0x494795
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49482d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49482d
cmp dword [esi + 0x38], 2
jle 0x4946f7
push ebp
push 0x5703b8
lea ecx, [esp + 0x20]
call fcn.00402fc0
push 2
lea ecx, [esi + 0x2c]
call fcn.0050f31c
cmp eax, ebp
je 0x494837
mov eax, dword [eax + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0040bfc0
lea edi, [esp + 0x18]
call fcn.0040b9e0
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebp
jl 0x4947fb
push 0x571ea4
push ecx
call fcn.00529c58
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, ebp
je 0x4947fb
sub eax, ecx
sar eax, 1
jns 0x49483c
cmp dword [esi + 0x78], 1
jle 0x494805
mov dword [esp + 0x1c], esi
lea eax, [ecx - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x54]
cmp ebx, ebp
jne 0x4946d2
jmp 0x494868
call fcn.0050c9ad
lea eax, [ecx - 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x494877
mov eax, dword [eax + 0x70]
cmp eax, ebp
jne 0x494894
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x494837
mov ecx, dword [eax]
mov eax, dword [eax + 8]
cmp eax, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
je 0x494a93
mov ebx, dword [edi + 0x470]
cmp ebx, ebp
je 0x4949ff
jmp 0x4948c0
cmp ebx, ebp
mov eax, ebx
je 0x494837
mov esi, dword [eax + 8]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov ebx, dword [ebx]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], ebp
lea ecx, [esi + 0xc]
jl 0x4948f5
cmp eax, dword [esi]
jne 0x4948f5
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x494930
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebp
je 0x494aa2
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.005297ad
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x28]
mov dword [esp + 0x4c], 1
call fcn.00464a70
xor ecx, ecx
cmp edi, ebp
setne cl
cmp ecx, ebp
je 0x494aa7
mov eax, dword [eax]
mov ecx, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x494986
cmp dx, bp
je 0x494982
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x494986
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x494960
xor eax, eax
jmp 0x49498b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
sete al
movzx esi, al
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4949b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x4c], 0xffffffff
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp esi, ebp
jne 0x4949e5
test edx, edx
jg 0x4949db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, ebp
jne 0x4948c0
jmp 0x4949f3
test edx, edx
jg 0x4949f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebp
mov edi, dword [esp + 0x54]
jne 0x494a93
push 0x494
call fcn.00503623
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x4c], 2
je 0x494a26
push eax
call fcn.00491880
mov esi, eax
jmp 0x494a28
xor esi, esi
cmp esi, ebp
mov dword [esp + 0x4c], 0xffffffff
je 0x494a93
mov edx, dword [edi + 0x464]
imul edx, dword [edi + 0x458]
mov ecx, dword [edi + 0x4b4]
add edx, dword [edi + 0x4a0]
push ebp
push ebp
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ebx, [esp + 0x30]
mov eax, edi
call fcn.0041a740
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00492120
push 5
mov ecx, esi
call fcn.0050a0f0
push esi
lea ecx, [edi + 0x41c]
call fcn.0050bb0d
add dword [edi + 0x458], 1
cmp dword [esp + 0x24], ebp
jne 0x494890
jmp 0x494877
call fcn.00450e40
push 0x80004005
call fcn.00402660
int3