Function at 0x47489c
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 0x4748e7
mov dword [ebp - 0xc], esi
mov edi, 0x94
call fcn.0047452b
cmp eax, 0x9b
jne 0x47490f
mov edi, 0x9b
mov dword [0x401230], 1
lea edx, [ebp - 0x18]
push edx
call fcn.00475ad4
push 0x2c
call fcn.004768c5
lea edx, [ebp - 0x14]
push edx
call fcn.00475ad4
push 0x2c
call fcn.004768c5
mov dword [ebp - 0xc], esi
call fcn.0047452b
cmp dword [0x405198], 2
jne 0x474986
cmp word [0x467210], 0x28
jne 0x474986
cmp dword [0x405198], 2
jne 0x47493c
cmp word [0x467210], 0x28
jne 0x47493c
call fcn.0047452b
jmp 0x474922
cmp dword [0x405198], 3
je 0x47496e
cmp dword [0x405198], 0xb
je 0x47496e
cmp dword [0x405198], 8
jne 0x474965
cmp eax, 0xe1
jl 0x474965
cmp eax, 0xf4
jle 0x47496e
cmp dword [0x405198], 0xa
jne 0x474975
jmp 0x474ad9
cmp dword [0x405198], 0xd
jne 0x474983
jmp 0x474b10
mov esi, dword [ebp - 0xc]
cmp dword [0x405198], 1
je 0x4749ab
cmp dword [0x405198], 0xffffffff
je 0x4749ab
cmp dword [0x405198], 2
jne 0x4749b5
cmp word [0x467210], 0x3a
jne 0x4749b5
jmp 0x474bed
cmp eax, 0x81
je 0x4749c3
cmp eax, 0x82
jne 0x4749cd
jmp 0x474b6e
cmp dword [0x405198], 8
jne 0x474a80
cmp eax, 0xcb
jl 0x474a80
cmp eax, 0xcd
jg 0x474a80
lea edx, [ebp - 8]
push edx
call fcn.00475ad4
mov ecx, dword [ebp - 8]
cmp eax, 0xcb
add byte [eax], al
jne 0x474a20
push ecx
nop
call 0x474a10
and eax, 0x6300
add bh, bh
jne 0x4749ff
push dword [ebp - 0x18]
call fcn.0046b99f
add esp, 0x10
jmp 0x474a78
cmp eax, 0xcc
add byte [eax], al
jne 0x474a44
push ecx
nop
call 0x474a34
and eax, 0x7800
add bh, bh
jne 0x474a23
push dword [ebp - 0x18]
call fcn.0046b99f
add esp, 0x10
jmp 0x474a78
cmp eax, 0xcd
jne 0x474a78
mov eax, dword [0x40519c]
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 0x474a6a
and eax, 0x7300
add bh, bh
jne 0x474a59
push dword [ebp - 0x18]
call fcn.0046b99f
add esp, 0x10
add dword [ebp - 0x10], eax
jmp 0x474b55
cmp dword [0x405198], 3
jne 0x474ab0
push 0x467210
nop
call 0x474a9a
and eax, 0x7300
add bh, bh
jne 0x474a89
push dword [ebp - 0x18]
call fcn.0046b99f
add esp, 0x10
add dword [ebp - 0x10], eax
jmp 0x474b55
cmp dword [0x405198], 0xb
je 0x474ad9
cmp dword [0x405198], 8
jne 0x474ad0
cmp eax, 0xe1
jl 0x474ad0
cmp eax, 0xf4
jle 0x474ad9
cmp dword [0x405198], 0xa
jne 0x474b07
mov esi, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
call fcn.0046ebe3
mov ecx, dword [ebp - 8]
push ecx
call 0x474af4
and eax, 0x7300
add bh, bh
jne 0x474ae3
invalid
push dword [ebp - 0x18]
call fcn.0046b99f
add esp, 0x10
add dword [ebp - 0x10], eax
jmp 0x474b55
cmp dword [0x405198], 0xd
jne 0x474b28
call fcn.00476f3e
push eax
call fcn.00476e18
mov ecx, dword [eax + 0x44]
cmp dword [eax + 0x40], 0xb
je 0x474ad9
jmp 0x474b28
mov esi, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
call fcn.00475ad4
mov ecx, dword [ebp - 8]
push ecx
nop
add byte [ebx - 0x6fae07b3], cl
call 0x474b44
and eax, 0x6400
add bh, bh
jne 0x474b33
push dword [ebp - 0x18]
call fcn.0046b99f
add esp, 0x10
add dword [ebp - 0x10], eax
mov word [ebp - 4], 0
call fcn.0047452b
cmp eax, 0x81
je 0x474b6e
cmp eax, 0x82
jne 0x474b7f
call fcn.0046c493
mov dword [0x405198], 1
jmp 0x474bed
cmp dword [0x405198], 2
je 0x474b8a
jmp 0x474bed
mov ax, word [0x467210]
mov word [ebp - 4], ax
cmp ax, 0x3b
jne 0x474bc7
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 0x474bbc
and eax, 0x63002a00
add byte [eax], al
add bh, bh
adc eax, sym.imp.msvcrt.dll_wprintf
add esp, 0xc
jmp 0x474bd7
cmp ax, 0x3a
jne 0x474bd1
jmp 0x474bed
cmp ax, 0x2c
jne 0x474bd7
cmp word [ebp - 4], 0x3b
je 0x4748c4
cmp word [ebp - 4], 0x2c
je 0x4748c4
cmp dword [0x405198], 1
je 0x474c12
cmp dword [0x405198], 0xffffffff
je 0x474c12
cmp dword [0x405198], 2
jne 0x474c4a
cmp word [0x467210], 0x3a
jne 0x474c4a
cmp word [ebp - 4], 0x3b
je 0x474c48
cmp word [ebp - 4], 0x2c
je 0x474c48
cmp edi, 0x94
jne 0x474c48
push 0xa
push 0xd
nop
call 0x474c3c
and eax, 0x25006300
add byte [ebx], ah
add byte [eax], al
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0046b99f
add esp, 0x14
jmp 0x474c4f
jmp 0x404854
pop edi
pop edx
pop ecx
pop eax
leave
ret