Function at 0x497f20
Capabilities:
Resume thread

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp + 0x272c]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x497f40
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp + 0x272c], ebx
mov dword [ebp + 0x2730], ebx
mov dword [ebp + 0x2734], ebx
mov eax, dword [ebp + 0x273c]
cmp eax, ebx
je 0x497f65
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp + 0x273c], ebx
mov dword [ebp + 0x2740], ebx
mov dword [ebp + 0x2744], ebx
mov byte [ebp + 0x274c], bl
mov byte [ebp + 0x274d], bl
mov byte [ebp + 0x274e], bl
mov byte [ebp + 0x274f], bl
mov eax, dword [ebp + 0x2758]
cmp eax, ebx
je 0x497fa8
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp + 0x2758], ebx
push ecx
mov dword [ebp + 0x2754], ebx
mov ecx, esp
mov eax, 0x728b30
mov dword [ebp + 0x2748], ebx
mov dword [ebp + 0x2750], 0xffffffff
call fcn.00412df0
call fcn.004d5290
add esp, 4
call fcn.00498aa0
call fcn.00499760
call fcn.00499f60
call fcn.0049a9a0
push 1
push ebp
call fcn.004983f0
test al, al
mov esi, 0x8eed78
push ebx
jne 0x49800a
call fcn.0052b520
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
call fcn.0052b520
push 0xfffffffffffffffe
push ebx
mov edi, ebp
call fcn.0049ae20
lea edi, [ebp + 4]
push 0x34
mov dword [edi + 0x2710], ebx
mov dword [edi + 0x2714], ebx
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x498049
push ebx
push ebx
call fcn.004fc060
mov dword [esi], 0x70cb5c
mov eax, esi
jmp 0x49804b
xor eax, eax
mov dword [ebp], eax
mov eax, dword [eax + 0x2c]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ebp, dword [ebp]
mov al, byte [ebp + 0x24]
test al, 1
mov dword [ebp + 0x18], ebx
jne 0x498076
mov ecx, dword [ebp + 0x2c]
or al, 1
push ecx
mov byte [ebp + 0x24], al
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 0x64
mov ebp, 0x8cccd0
mov esi, 0x1e
lea eax, [esp + 0x74]
mov ebx, esp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0xac], 0x8ca278
call fcn.00498530
call fcn.004a1410
sub esp, 0x64
lea eax, [esp + 0x74]
mov ebx, esp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0xac], 0x8ca274
call fcn.00498530
call fcn.004a1410
sub esp, 0x64
lea eax, [esp + 0x74]
mov ebx, esp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0xac], 0x8ca270
call fcn.00498530
call fcn.004a1410
sub esp, 0x64
lea eax, [esp + 0x74]
mov ebx, esp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0xac], 0x8ca288
call fcn.00498530
call fcn.004a1410
sub esp, 0x64
lea eax, [esp + 0x74]
mov ebx, esp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0xac], 0x8ca284
call fcn.00498530
call fcn.004a1410
sub esp, 0x64
lea eax, [esp + 0x74]
mov ebx, esp
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0xac], 0x8ca280
call fcn.00498530
call fcn.004a1410
xor al, al
mov byte [0x8ca27f], al
mov byte [0x8ca27e], al
mov byte [0x8ca1f0], al
mov byte [0x8ca27d], 1
mov byte [0x8ca27c], al
call fcn.004d5210
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x64
ret 4