Function at 0x474964
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push eax
push ecx
push edx
push edi
mov edi, eax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0
cmp eax, 0x9b
je 0x4749af
mov dword [ebp - 0xc], esi
mov edi, 0x94
call fcn.004745ed
cmp eax, 0x9b
jne 0x4749d7
mov edi, 0x9b
mov dword [0x401310], 1
lea edx, [ebp - 0x18]
push edx
call fcn.00475b7f
push 0x2c
call fcn.0047695d
lea edx, [ebp - 0x14]
push edx
call fcn.00475b7f
push 0x2c
call fcn.0047695d
mov dword [ebp - 0xc], esi
call fcn.004745ed
cmp dword [0x405084], 2
jne 0x474a4e
cmp word [0x4670fc], 0x28
jne 0x474a4e
cmp dword [0x405084], 2
jne 0x474a04
cmp word [0x4670fc], 0x28
jne 0x474a04
call fcn.004745ed
jmp 0x4749ea
cmp dword [0x405084], 3
je 0x474a36
cmp dword [0x405084], 0xb
je 0x474a36
cmp dword [0x405084], 8
jne 0x474a2d
cmp eax, 0xe2
jl 0x474a2d
cmp eax, 0xf5
jle 0x474a36
cmp dword [0x405084], 0xa
jne 0x474a3d
jmp 0x474ba1
cmp dword [0x405084], 0xd
jne 0x474a4b
jmp 0x474bd8
mov esi, dword [ebp - 0xc]
cmp dword [0x405084], 1
je 0x474a73
cmp dword [0x405084], 0xffffffff
je 0x474a73
cmp dword [0x405084], 2
jne 0x474a7d
cmp word [0x4670fc], 0x3a
jne 0x474a7d
jmp 0x474cb5
cmp eax, 0x81
je 0x474a8b
cmp eax, 0x82
jne 0x474a95
jmp 0x474c36
cmp dword [0x405084], 8
jne 0x474b48
cmp eax, 0xcc
jl 0x474b48
cmp eax, 0xce
jg 0x474b48
lea edx, [ebp - 8]
push edx
call fcn.00475b7f
mov ecx, dword [ebp - 8]
cmp eax, 0xcc
add byte [eax], al
jne 0x474ae8
push ecx
nop
call 0x474ad8
and eax, 0x6300
add bh, bh
jne 0x474ac7
push dword [ebp - 0x18]
call fcn.0046b9dd
add esp, 0x10
jmp 0x474b40
cmp eax, 0xcd
add byte [eax], al
jne 0x474b0c
push ecx
nop
call 0x474afc
and eax, 0x7800
add bh, bh
jne 0x474aeb
push dword [ebp - 0x18]
call fcn.0046b9dd
add esp, 0x10
jmp 0x474b40
cmp eax, 0xce
jne 0x474b40
mov eax, dword [0x405088]
push 2
push eax
push ecx
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
push eax
nop
add byte [ebx - 0x6faff33c], al
call 0x474b32
and eax, 0x7300
add bh, bh
jne 0x474b21
push dword [ebp - 0x18]
call fcn.0046b9dd
add esp, 0x10
add dword [ebp - 0x10], eax
jmp 0x474c1d
cmp dword [0x405084], 3
jne 0x474b78
push 0x4670fc
nop
call 0x474b62
and eax, 0x7300
add bh, bh
jne 0x474b51
push dword [ebp - 0x18]
call fcn.0046b9dd
add esp, 0x10
add dword [ebp - 0x10], eax
jmp 0x474c1d
cmp dword [0x405084], 0xb
je 0x474ba1
cmp dword [0x405084], 8
jne 0x474b98
cmp eax, 0xe2
jl 0x474b98
cmp eax, 0xf5
jle 0x474ba1
cmp dword [0x405084], 0xa
jne 0x474bcf
mov esi, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
call fcn.0046eceb
mov ecx, dword [ebp - 8]
push ecx
call 0x474bbc
and eax, 0x7300
add bh, bh
jne 0x474bab
invalid
push dword [ebp - 0x18]
call fcn.0046b9dd
add esp, 0x10
add dword [ebp - 0x10], eax
jmp 0x474c1d
cmp dword [0x405084], 0xd
jne 0x474bf0
call fcn.00476fd3
push eax
call fcn.00476eaa
mov ecx, dword [eax + 0x44]
cmp dword [eax + 0x40], 0xb
je 0x474ba1
jmp 0x474bf0
mov esi, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
call fcn.00475b7f
mov ecx, dword [ebp - 8]
push ecx
nop
add byte [ebx - 0x6fae07b3], cl
call 0x474c0c
and eax, 0x6400
add bh, bh
jne 0x474bfb
push dword [ebp - 0x18]
call fcn.0046b9dd
add esp, 0x10
add dword [ebp - 0x10], eax
mov word [ebp - 4], 0
call fcn.004745ed
cmp eax, 0x81
je 0x474c36
cmp eax, 0x82
jne 0x474c47
call fcn.0046c5cc
mov dword [0x405084], 1
jmp 0x474cb5
cmp dword [0x405084], 2
je 0x474c52
jmp 0x474cb5
mov ax, word [0x4670fc]
mov word [ebp - 4], ax
cmp ax, 0x3b
jne 0x474c8f
mov eax, dword [ebp - 0x10]
mov ecx, 8
xor edx, edx
div ecx
sub ecx, edx
add dword [ebp - 0x10], ecx
push 0x20
push ecx
nop
call 0x474c84
and eax, 0x63002a00
add byte [eax], al
add bh, bh
adc eax, sym.imp.msvcrt.dll_wprintf
add esp, 0xc
jmp 0x474c9f
cmp ax, 0x3a
jne 0x474c99
jmp 0x474cb5
cmp ax, 0x2c
jne 0x474c9f
cmp word [ebp - 4], 0x3b
je 0x47498c
cmp word [ebp - 4], 0x2c
je 0x47498c
cmp dword [0x405084], 1
je 0x474cda
cmp dword [0x405084], 0xffffffff
je 0x474cda
cmp dword [0x405084], 2
jne 0x474d12
cmp word [0x4670fc], 0x3a
jne 0x474d12
cmp word [ebp - 4], 0x3b
je 0x474d10
cmp word [ebp - 4], 0x2c
je 0x474d10
cmp edi, 0x94
jne 0x474d10
push 0xa
push 0xd
nop
call 0x474d04
and eax, 0x25006300
add byte [ebx], ah
add byte [eax], al
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0046b9dd
add esp, 0x14
jmp 0x474d17
jmp 0x404722
pop edi
pop edx
pop ecx
pop eax
leave
ret