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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x44]
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
jne 0x470a4f
cmp dword [ebx + 0x48], ebp
je 0x470a6b
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov esi, 1
mov ecx, dword [ecx + 0x1060]
push esi
push eax
call fcn.004780a0
test eax, eax
je 0x470a6d
xor esi, esi
mov edi, dword [ebx + 0x4c]
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x34]
cmp eax, dword [edx + 0x40]
je 0x470a96
mov ecx, ebx
call fcn.00470fc0
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ecx + 0x40]
mov dword [ebx + 0x34], edx
cmp esi, ebp
mov ecx, ebx
je 0x470f30
call fcn.00470f50
mov eax, dword [ebx + 0x4c]
lea ecx, [esp + 0x24]
push eax
call fcn.0046fb70
cmp dword [esp + 0x24], ebp
jne 0x470ad4
lea ecx, [esp + 0x24]
call fcn.0046fbd0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x20]
mov ecx, dword [eax + 0x78]
cmp ecx, edx
jbe 0x470ab8
cmp dword [eax + 0x7c], ebp
je 0x470ab8
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebx + 0x44]
cmp ecx, ebp
je 0x470bc1
cmp dword [eax + 0x34], ebp
je 0x470bc1
mov byte [esp + 0x10], 1
mov ebp, 2
mov edx, dword [ebx + 0x4c]
xor eax, eax
cmp dword [edx + 0x28], 0x64
je 0x470b25
mov ecx, dword [ebx + 0x10]
push str.onActivity
call fcn.0043e630
neg eax
sbb eax, eax
neg eax
mov cl, byte [esp + 0x10]
test cl, cl
jne 0x470b35
test eax, eax
je 0x470e78
mov ecx, ebx
call fcn.00471010
mov ecx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0xffffffff
push eax
mov edx, dword [ecx + 0x7c]
mov ecx, dword [ebx + 0x38]
push edx
call fcn.0047e070
mov edi, dword [ebx + 0x48]
test edi, edi
je 0x470d9a
mov eax, dword [edi + 4]
cmp word [eax + 8], bp
jne 0x470d90
mov ecx, dword [eax + 0x4c]
call fcn.0046d290
test al, al
jne 0x470b92
mov ecx, dword [edi + 4]
add ecx, 0x1a8
call fcn.004848c0
test al, al
je 0x470d90
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x470d90
mov ecx, dword [eax + 0xe4]
test ecx, ecx
jne 0x470c27
push 0x48
call fcn.004178f0
add esp, 4
test eax, eax
je 0x470c1c
mov ecx, eax
call fcn.0047e080
jmp 0x470c1e
mov esi, dword [ebx + 0x48]
mov byte [esp + 0x10], 0
cmp esi, ebp
je 0x470b02
mov eax, dword [esi + 4]
mov ebp, 2
cmp word [eax + 8], bp
jne 0x470c07
mov ecx, dword [eax + 0x4c]
call fcn.0046d290
test al, al
jne 0x470bfd
mov ecx, dword [esi + 4]
add ecx, 0x1a8
call fcn.004848c0
test al, al
je 0x470c07
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x470c12
mov esi, dword [esi]
test esi, esi
jne 0x470bd1
jmp 0x470b07
mov byte [esp + 0x10], 1
jmp 0x470b07
xor eax, eax
mov ecx, dword [edi + 4]
mov dword [ecx + 0xe4], eax
mov ecx, dword [edi + 4]
mov eax, dword [ebx + 0x38]
lea edx, [esp + 0x14]
mov ecx, dword [ecx + 0xe4]
push edx
push eax
call fcn.0047e0f0
mov esi, eax
test esi, esi
je 0x470d90
mov edx, dword [edi + 4]
mov ecx, esi
mov eax, dword [edx + 0xc]
push eax
call fcn.0046ef70
xor ecx, ecx
xor edx, edx
mov ch, byte [esi + 0xf]
mov dl, byte [esi + 0xd]
mov cl, byte [esi + 0xc]
xor eax, eax
mov al, byte [esi + 0xe]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
push ecx
mov ecx, dword [edi + 4]
add ecx, 0x2f4
call fcn.00484d50
push eax
mov ecx, esi
call fcn.0046ef40
mov eax, dword [edi + 4]
xor ebp, ebp
cmp dword [eax + 0xec], 1
jne 0x470d24
mov ecx, dword [eax + 0xe8]
test ecx, ecx
jle 0x470d17
push 0x18
call fcn.004178f0
add esp, 4
test eax, eax
je 0x470cc0
push 1
mov ecx, eax
call fcn.0046ee30
mov ebp, eax
jmp 0x470cc2
xor ebp, ebp
push 1
mov ecx, ebp
call fcn.0046ef20
xor ecx, ecx
mov byte [ebp + 8], 9
mov ch, byte [esi + 0xf]
xor edx, edx
mov cl, byte [esi + 0xc]
mov dl, byte [esi + 0xd]
shl ecx, 8
or ecx, edx
mov edx, dword [edi + 4]
xor eax, eax
mov al, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
mov eax, dword [edx + 0xe8]
add ecx, eax
push ecx
mov ecx, ebp
call fcn.0046ef40
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebp + 0x14]
mov dl, byte [eax + 0x38]
mov byte [ecx], dl
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, ebp
call fcn.0046ef70
mov edx, dword [edi + 4]
mov dword [edx + 0xec], 2
mov ecx, dword [edi + 4]
add ecx, 0x1a8
call fcn.004848c0
test al, al
je 0x470d5a
mov ecx, dword [edi + 4]
push esi
add ecx, 0x1a8
call fcn.004845a0
test ebp, ebp
je 0x470d81
mov ecx, dword [edi + 4]
push ebp
add ecx, 0x1a8
call fcn.004845a0
jmp 0x470d81
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x4c]
call fcn.0046d270
mov ecx, dword [edi + 4]
push esi
add ecx, 0x4c
call fcn.00473780
test ebp, ebp
je 0x470d81
mov ecx, dword [edi + 4]
push ebp
add ecx, 0x4c
call fcn.00473780
mov ecx, dword [edi + 4]
push 1
call fcn.00480d70
mov ebp, 2
mov edi, dword [edi]
test edi, edi
jne 0x470b63
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x470da8
cmp dword [esp + 0x14], 0xffffffff
jne 0x470e0b
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x470dcb
push 0x48
call fcn.004178f0
add esp, 4
test eax, eax
je 0x470dc6
mov ecx, eax
call fcn.0047e080
jmp 0x470dc8
xor eax, eax
mov dword [ebx + 0x40], eax
mov edx, dword [ebx + 0x38]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x40]
push edx
call fcn.0047e0f0
mov esi, eax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x470df7
test esi, esi
mov dword [esp + 0x20], esi
jne 0x470e0b
mov dword [esp + 0x1c], 1
jmp 0x470e0b
test esi, esi
je 0x470e0b
mov ecx, esi
call fcn.0046ee90
push esi
call fcn.00417900
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, 0x64
mov eax, esi
sub eax, ecx
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x88888889
shl ecx, 2
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, esi
mov dword [ebx + 0x24], edx
jle 0x470e3e
mov dword [ebx + 0x24], esi
mov eax, dword [ebx + 0x24]
test eax, eax
jge 0x470e4c
mov dword [ebx + 0x24], 0
mov ecx, dword [ebx + 0x4c]
cmp dword [ecx + 0x28], esi
je 0x470e74
mov edx, dword [esp + 0x30]
mov dword [edx], 1
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x24]
xor edx, edx
mov esi, dword [eax + 0x28]
mov eax, dword [esp + 0x34]
cmp ecx, esi
setge dl
mov dword [eax], edx
mov edi, dword [esp + 0x18]
lea esi, [ebx + 0x48]
mov eax, dword [esi]
test eax, eax
je 0x470eae
mov ecx, dword [eax + 4]
cmp dword [ecx + 0xec], ebp
je 0x470e94
mov eax, dword [eax]
test eax, eax
je 0x470eae
jmp 0x470e81
mov edx, dword [eax + 4]
mov ecx, esi
mov dword [edx + 0xec], 0
mov eax, dword [eax + 4]
push eax
call fcn.00471990
jmp 0x470e7b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x470ed5
lea ecx, [esp + 0x24]
call fcn.0046fbd0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
mov esi, dword [esp + 0x20]
test esi, esi
je 0x470ef1
xor eax, eax
xor ecx, ecx
mov ah, byte [esi + 9]
mov cl, byte [esi + 0xb]
mov al, byte [esi + 0xa]
shl eax, 8
or eax, ecx
jmp 0x470ef6
mov eax, 1
mov edx, dword [ebx + 0x4c]
mov ecx, dword [edx + 0x5c]
push ecx
lea ecx, [ebx + 0x28]
mov edx, dword [edx + 0x58]
push edx
push eax
call fcn.0046f7d0
push esi
mov ecx, ebx
call fcn.00471190
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.0046fbd0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
call fcn.00470fc0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8