Function at 0x475460
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xad0
mov eax, 8
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x6d0]
push ebx
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
push esi
lea edx, [ebp - 0xad0]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x650], edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 0xd
cmp byte [eax], cl
je 0x4763f0
jmp 0x4754c3
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0xe
je 0x4763f0
test ecx, ecx
jl 0x4763f0
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 4]
mov eax, edi
and edi, 7
sar eax, 3
shl edi, 6
add edi, dword [ebp + eax*4 - 0x650]
movzx eax, byte [esi]
xor ebx, ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x475ee9
cmp eax, 0x80
jge 0x475513
cmp eax, 0x25
je 0x4755f3
inc esi
jmp 0x475571
push 4
push esi
push ebx
call dword [0x4bede4]
add esp, 0xc
cmp eax, ebx
jge 0x47556f
test byte [0x4e34ec], 1
jne 0x47554a
or dword [0x4e34ec], 1
push str.BTK_USE_STRICT_PRINTF
call fcn.0040c972
add esp, 4
test eax, eax
setne byte [0x4e34e8]
cmp byte [0x4e34e8], 0
je 0x47556a
push 0x71a
push 0x4a7370
push str.btk_printf_stream_low:_invalid_multibyte_character_sequence
call fcn.00467c40
add esp, 0xc
mov eax, 1
add esi, eax
movzx eax, byte [esi]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x475500
cmp eax, ebx
mov dword [ebp - 4], esi
jle 0x475ee9
xor ebx, ebx
cmp dword [ebp - 0x20], 0xd
mov dword [ebp - 8], ebx
jge 0x47566a
jmp 0x4755a0
mov edx, dword [ebp - 4]
movzx esi, byte [edx]
cmp esi, 0x80
mov dword [ebp + 0x10], esi
jg 0x47566a
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi*4 + str._b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_b_a_b_b_a]
shl ecx, 4
movzx eax, byte [ecx + eax + 0x4a7270]
mov ecx, eax
and eax, 0xf
and ecx, 0x1f0
mov dword [ebp - 0x20], eax
lea eax, [ecx - 0x10]
mov dword [ebp - 0x18], ecx
cmp eax, 0xe0
ja case.0x4755ec.17
movzx eax, byte [eax + 0x476464]
jmp dword [eax*4 + 0x476430]
or eax, 0xffffffff
mov dword [edi], esi
inc esi
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
cmp byte [esi], 0x25
mov dword [ebp - 4], esi
jne 0x475634
inc esi
mov dword [edi + 8], 0x25
mov dword [ebp - 4], esi
mov dword [edi + 0x28], 0x10000000
mov dword [ebp - 0x20], 0xd
jmp 0x475588
mov dword [edi + 0x28], ebx
mov dword [ebp - 0x20], ebx
jmp 0x475588
add esi, 0xffffffe0
cmp esi, 0x10
ja case.0x4755ec.17
movzx ecx, byte [esi + 0x476560]
jmp dword [ecx*4 + 0x476548]
mov dword [edi + 0xc], 0x2b
inc edx
mov dword [ebp - 4], edx
cmp dword [ebp - 0x20], 0xd
jl 0x4755a0
cmp dword [ebp - 0x20], 0xe
je 0x475e9d
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
inc eax
cmp eax, esi
mov dword [edi + 4], ecx
mov dword [ebp - 0x30], eax
jl 0x4756bd
lea edi, [eax + 8]
sar edi, 3
sar esi, 3
cmp esi, edi
jge 0x4756b3
mov eax, 0x208
call fcn.0040b8d0
mov eax, esp
add eax, 7
and eax, 0xfffffff8
mov dword [ebp + esi*4 - 0x650], eax
inc esi
cmp esi, edi
jl 0x475695
lea edx, [edi*8]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x34]
mov ecx, eax
sar ecx, 3
mov edx, dword [ebp + ecx*4 - 0x650]
mov ecx, dword [ebp - 0xc]
and eax, 7
shl eax, 6
cmp dword [edx + eax + 0x14], ecx
jg 0x4754d5
jmp 0x475ee9
or dword [edi + 0x28], 0x200
jmp case.0x4755ec.17
or dword [edi + 0x28], 0x1000
jmp case.0x4755ec.17
or dword [edi + 0x28], 0x400
jmp case.0x4755ec.17
cmp dword [edi + 0xc], 0
jne case.0x4755ec.17
mov dword [edi + 0xc], 0x20
jmp case.0x4755ec.17
mov eax, ebx
test ebx, ebx
jge 0x47572d
or dword [edi + 0x28], 0x200
neg eax
movsx edx, ax
mov dword [edi + 0x18], edx
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x28]
push eax
push ecx
push esi
call fcn.0046e720
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x475660
xor ecx, ecx
cmp ebx, ecx
jge 0x47575b
or dword [edi + 0x28], 0x200
neg ebx
movsx eax, bx
mov dword [edi + 0x18], eax
jmp 0x475765
xor ecx, ecx
add esi, 0xffffffbd
xor ebx, ebx
cmp esi, 0x35
ja case.0x47577a.72
movzx eax, byte [esi + 0x4765b0]
jmp dword [eax*4 + 0x476574]
mov ebx, 4
mov dword [ebp + 0x10], 0x64
or ebx, 0x4002000
mov dword [edi + 0x24], 0xa
jmp case.0x47577a.72
mov ebx, 4
mov dword [ebp + 0x10], 0x6f
or ebx, 0x4000000
mov dword [edi + 0xc], ecx
mov dword [edi + 0x24], 8
jmp case.0x47577a.72
mov ebx, 0x4000000
mov dword [edi + 0xc], ecx
mov dword [edi + 0x24], 0xa
jmp case.0x47577a.72
cmp dword [edi + 0x1c], ecx
jne case.0x47577a.69
mov dword [edi + 0x1c], 1
cmp dword [edi + 0x1c], 0xffffffff
jne 0x4757ea
mov dword [edi + 0x1c], 6
mov ebx, 0x8000000
jmp case.0x47577a.72
mov ebx, 4
or ebx, 0x1000000
jmp case.0x47577a.72
mov al, byte [edx]
cmp al, 0x66
je 0x475826
cmp al, 0x64
je 0x475826
mov ebx, 0x804
mov dword [ebp + 0x10], 0x78
or ebx, 0x4000000
mov dword [edi + 0xc], ecx
mov dword [edi + 0x24], 0x10
jmp case.0x47577a.72
inc edx
mov dword [ebp + 0x10], 0x7e
mov dword [ebp - 4], edx
mov ebx, 0x1000000
jmp case.0x47577a.72
mov ebx, 0x40000000
jmp case.0x47577a.72
mov ebx, 4
or ebx, 0x2000000
mov eax, dword [edi + 0x28]
test eax, 0xff000000
je 0x4758a3
and eax, ebx
test eax, 0xff000000
jne 0x4758a3
test byte [0x4e34ec], 1
jne 0x475883
or dword [0x4e34ec], 1
push str.BTK_USE_STRICT_PRINTF
call fcn.0040c972
add esp, 4
test eax, eax
setne byte [0x4e34e8]
cmp byte [0x4e34e8], 0
je 0x4758a3
push 0x71a
push 0x4a7370
push str.btk_printf_stream_low:_invalid_modifier_and_specifier_combination
call fcn.00467c40
add esp, 0xc
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x10]
and ecx, 0xffffff
or ebx, ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x28], ebx
cmp eax, 0xffffffff
je 0x475963
cmp eax, ecx
je 0x475963
mov esi, eax
and esi, 7
mov edx, eax
sar edx, 3
shl esi, 4
add esi, dword [ebp + edx*4 - 0x250]
cmp eax, ecx
jge 0x47594d
mov eax, dword [esi]
xor eax, ebx
test eax, 0xff000000
je 0x475ad8
test byte [0x4e34ec], 1
jne 0x475915
or dword [0x4e34ec], 1
push str.BTK_USE_STRICT_PRINTF
call fcn.0040c972
add esp, 4
test eax, eax
setne byte [0x4e34e8]
cmp byte [0x4e34e8], 0
je 0x475ad8
push 0x71a
push 0x4a7370
push str.btk_printf_stream_low:_redefinition_of_specifier
call fcn.00467c40
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
add esp, 0xc
inc dword [ebp - 4]
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], esi
jmp 0x475660
mov ecx, dword [ebp + 0x10]
inc dword [ebp - 4]
mov dword [esi], ebx
mov ebx, dword [ebp - 8]
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], esi
jmp 0x475660
mov dword [ebp - 0x1c], ecx
mov dword [edi + 0x10], ecx
inc ecx
cmp ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
jle 0x4759af
mov esi, dword [ebp - 0x14]
mov edi, ecx
add edi, 7
sar edi, 3
sar esi, 3
cmp esi, edi
jge 0x4759a2
mov eax, 0x88
call fcn.0040b8d0
mov eax, esp
add eax, 7
and eax, 0xfffffff8
mov dword [ebp + esi*4 - 0x250], eax
inc esi
cmp esi, edi
jl 0x475984
lea ecx, [edi*8]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
mov edx, esi
and esi, 7
sar edx, 3
shl esi, 4
add esi, dword [ebp + edx*4 - 0x250]
mov eax, ebx
and eax, 0xff000000
mov dword [esi], ebx
cmp eax, 0x8000000
ja 0x475a4b
je 0x475a2c
cmp eax, 0x1000000
je 0x475aa7
cmp eax, 0x2000000
jne 0x475a59
add ecx, 4
mov dword [ebp + 0x14], ecx
test bl, 4
je 0x475a12
mov ax, word [ecx - 4]
mov ecx, dword [ebp + 0x10]
inc dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov word [esi + 8], ax
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], esi
jmp 0x475660
mov cl, byte [ecx - 4]
inc dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov byte [esi + 8], cl
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], esi
jmp 0x475660
fld qword [ecx]
mov ebx, dword [ebp - 8]
add ecx, 8
fstp qword [esi + 8]
inc dword [ebp - 4]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], esi
jmp 0x475660
cmp eax, 0x20000000
je 0x475aa7
cmp eax, 0x40000000
je 0x475aa7
test bl, 4
je 0x475a7d
mov edx, dword [ecx]
mov ebx, dword [ebp - 8]
add ecx, 4
inc dword [ebp - 4]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 8], edx
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], esi
jmp 0x475660
test bl, 8
je 0x475a5e
mov eax, dword [ecx]
mov ebx, dword [ebp - 8]
add ecx, 8
inc dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [ebp + 0x14], ecx
mov ecx, dword [ecx - 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], esi
jmp 0x475660
add ecx, 4
cmp dword [ebp + 0x10], 0x7e
mov dword [ebp + 0x14], ecx
mov ecx, dword [ecx - 4]
mov dword [esi + 8], ecx
jne 0x475ad8
push ecx
lea eax, [ebp - 0x8d0]
call fcn.0046ede0
lea eax, [ebp - 0x8d0]
add esp, 4
mov dword [esi + 8], eax
mov dword [ebp + 0x10], 0x73
mov ecx, dword [ebp + 0x10]
inc dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], esi
jmp 0x475660
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push esi
call fcn.00467ee0
mov ebx, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x475660
mov eax, dword [edi + 0x14]
cmp eax, ebx
jg 0x475b11
mov eax, ebx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jge 0x475b8b
cmp ebx, dword [ebp - 0x14]
jle 0x475b61
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
add ebx, 7
sar ebx, 3
sar esi, 3
cmp esi, ebx
jge 0x475b51
mov eax, 0x88
call fcn.0040b8d0
mov eax, esp
add eax, 7
and eax, 0xfffffff8
mov dword [ebp + esi*4 - 0x250], eax
inc esi
cmp esi, ebx
jl 0x475b33
mov eax, dword [ebp - 0x2c]
lea ecx, [ebx*8]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
lea ecx, [ebx - 1]
cmp eax, ecx
jge 0x475b88
mov edx, eax
mov esi, eax
sar edx, 3
mov edx, dword [ebp + edx*4 - 0x250]
and esi, 7
shl esi, 4
inc eax
cmp eax, ecx
mov dword [esi + edx], 0
jl 0x475b68
mov dword [ebp - 0x2c], ebx
dec ebx
inc dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [edi + 0x10], ebx
jmp 0x475660
inc edx
cmp ebx, dword [ebp - 0xc]
lea esi, [ebx - 1]
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], esi
jg 0x475c48
mov eax, esi
and esi, 7
sar eax, 3
shl esi, 4
add esi, dword [ebp + eax*4 - 0x250]
cmp dword [esi], 0x4000000
je 0x475c13
test byte [0x4e34ec], 1
jne 0x475bf0
or dword [0x4e34ec], 1
push str.BTK_USE_STRICT_PRINTF
call fcn.0040c972
mov ecx, dword [ebp - 0x18]
add esp, 4
test eax, eax
setne byte [0x4e34e8]
cmp byte [0x4e34e8], 0
je 0x475c13
push 0x71a
push 0x4a7370
push str.btk_printf_stream_low:_incorrect_type_of_argument_for_variable_width_or_precision
call fcn.00467c40
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov esi, dword [esi + 8]
cmp ecx, 0x90
jne 0x475c36
test esi, esi
jge 0x475c2b
or dword [edi + 0x28], 0x200
neg esi
movsx ecx, si
mov dword [edi + 0x18], ecx
jmp 0x475660
test esi, esi
jge 0x475c3d
or esi, 0xffffffff
movsx edx, si
mov dword [edi + 0x1c], edx
jmp 0x475660
cmp ecx, 0x90
jne 0x475c59
mov eax, ebx
neg eax
mov dword [edi + 0x18], eax
jmp 0x475c60
mov ecx, ebx
neg ecx
mov dword [edi + 0x20], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
jg 0x475c69
mov eax, ebx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jge 0x475ce8
cmp ebx, dword [ebp - 0x14]
jle 0x475cc1
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
add ebx, 7
sar ebx, 3
sar esi, 3
cmp esi, ebx
jge 0x475cae
jmp 0x475c90
mov eax, 0x88
call fcn.0040b8d0
mov eax, esp
add eax, 7
and eax, 0xfffffff8
mov dword [ebp + esi*4 - 0x250], eax
inc esi
cmp esi, ebx
jl 0x475c90
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
lea edx, [ebx*8]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
cmp eax, esi
jge 0x475ce5
mov ecx, eax
mov edx, eax
sar ecx, 3
mov ecx, dword [ebp + ecx*4 - 0x250]
and edx, 7
shl edx, 4
inc eax
cmp eax, esi
mov dword [edx + ecx], 0
jl 0x475cc5
mov dword [ebp - 0x2c], ebx
mov edx, esi
sar edx, 3
mov eax, dword [ebp + edx*4 - 0x250]
and esi, 7
shl esi, 4
mov dword [esi + eax], 0x4000000
jmp 0x475660
inc edx
add ecx, 0x10
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
inc eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jle 0x475d59
mov esi, dword [ebp - 0x14]
mov ebx, eax
add ebx, 7
sar ebx, 3
sar esi, 3
cmp esi, ebx
jge 0x475d4f
mov eax, 0x88
call fcn.0040b8d0
mov eax, esp
add eax, 7
and eax, 0xfffffff8
mov dword [ebp + esi*4 - 0x250], eax
inc esi
cmp esi, ebx
jl 0x475d31
lea ecx, [ebx*8]
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov edx, esi
and esi, 7
sar edx, 3
shl esi, 4
add esi, dword [ebp + edx*4 - 0x250]
cmp dword [ebp - 0x2c], eax
jl 0x475dc9
mov eax, dword [esi]
test eax, eax
je 0x475dc9
cmp eax, 0x4000000
je 0x475dc9
test byte [0x4e34ec], 1
jne 0x475da9
or dword [0x4e34ec], 1
push str.BTK_USE_STRICT_PRINTF
call fcn.0040c972
add esp, 4
test eax, eax
setne byte [0x4e34e8]
cmp byte [0x4e34e8], 0
je 0x475dc9
push 0x71a
push 0x4a7370
push str.btk_printf_stream_low:_incorrect_type_of_argument_for_variable_width_or_precision
call fcn.00467c40
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, 4
cmp dword [ebp - 0x18], 0x50
mov dword [esi], 0x4000000
mov dword [ebp + 0x14], eax
mov eax, dword [eax - 4]
mov dword [esi + 8], eax
jne 0x475dff
test eax, eax
jge 0x475df1
or dword [edi + 0x28], 0x200
neg eax
mov ebx, dword [ebp - 8]
movsx ecx, ax
mov dword [edi + 0x18], ecx
jmp 0x475660
test eax, eax
jge 0x475e06
or eax, 0xffffffff
mov ebx, dword [ebp - 8]
movsx edx, ax
mov dword [edi + 0x1c], edx
jmp 0x475660
mov eax, ebx
test ebx, ebx
jge 0x475e23
or dword [edi + 0x28], 0x200
neg eax
cwde
mov dword [edi + 0x18], eax
jmp case.0x4755ec.17
cmp esi, 0x23
je 0x475660
cmp esi, 0x20
je 0x475660
cmp esi, 0x2d
sete al
mov byte [ebp + 0x13], al
test al, al
je 0x475e67
mov eax, dword [ebp - 4]
movsx esi, byte [eax + 1]
inc eax
push esi
mov dword [ebp - 4], eax
call fcn.004066eb
add esp, 4
test eax, eax
je 0x475660
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push edx
push esi
call fcn.00467ee0
add esp, 0xc
cmp byte [ebp + 0x13], 0
mov dword [ebp - 4], eax
je 0x475e88
or dword [edi + 0x28], 0x200
mov ebx, dword [ebp - 8]
mov eax, ebx
test ebx, ebx
jge 0x475e94
or eax, 0xffffffff
cwde
mov dword [edi + 0x1c], eax
jmp 0x475660
test byte [0x4e34ec], 1
jne 0x475ec3
or dword [0x4e34ec], 1
push str.BTK_USE_STRICT_PRINTF
call fcn.0040c972
add esp, 4
test eax, eax
setne byte [0x4e34e8]
cmp byte [0x4e34e8], 0
je 0x475ee3
push 0x71a
push 0x4a7370
push str.btk_printf_stream_low:_invalid_format_specification
call fcn.00467c40
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x30], 0
jle 0x4763e4
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x475faa
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jge 0x475faa
mov edx, dword [ebp + 0x14]
mov eax, esi
and eax, 7
mov ecx, esi
sar ecx, 3
shl eax, 4
add eax, dword [ebp + ecx*4 - 0x250]
mov ebx, dword [eax]
mov ecx, ebx
and ecx, 0xff000000
cmp ecx, 0x8000000
ja 0x475f6c
je 0x475f62
cmp ecx, 0x1000000
je 0x475f96
cmp ecx, 0x2000000
jne 0x475f7c
add edx, 4
test bl, 4
je 0x475f5a
mov cx, word [edx - 4]
mov word [eax + 8], cx
jmp 0x475f9e
mov cl, byte [edx - 4]
mov byte [eax + 8], cl
jmp 0x475f9e
fld qword [edx]
add edx, 8
fstp qword [eax + 8]
jmp 0x475f9e
cmp ecx, 0x20000000
je 0x475f96
cmp ecx, 0x40000000
je 0x475f96
test bl, 4
jne 0x475f96
test bl, 8
je 0x475f96
mov ecx, dword [edx]
add edx, 8
mov dword [eax + 8], ecx
mov ecx, dword [edx - 4]
mov dword [eax + 0xc], ecx
jmp 0x475f9e
mov ecx, dword [edx]
add edx, 4
mov dword [eax + 8], ecx
inc esi
cmp esi, edi
jl 0x475f10
mov dword [ebp + 0x14], edx
mov eax, dword [ebp - 0x34]
lea ecx, [ecx]
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x24]
mov esi, eax
and esi, 7
mov edi, eax
sar edi, 3
shl esi, 6
add esi, dword [ebp + edi*4 - 0x650]
xor edx, edx
mov edi, dword [esi + 0x14]
cmp edi, dword [ebp - 0xc]
jg 0x4763d9
mov eax, dword [esi + 0x18]
cmp eax, edx
jge 0x476008
not eax
mov edi, eax
and eax, 7
sar edi, 3
mov edi, dword [ebp + edi*4 - 0x250]
shl eax, 4
mov eax, dword [edi + eax + 8]
cmp eax, edx
jge 0x476004
or dword [esi + 0x28], 0x200
neg eax
cwde
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x20]
cmp eax, edx
jge 0x476035
not eax
mov edi, eax
and eax, 7
sar edi, 3
mov edi, dword [ebp + edi*4 - 0x250]
shl eax, 4
mov eax, dword [edi + eax + 8]
cmp eax, edx
jge 0x47602e
or eax, 0xffffffff
cwde
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov edi, dword [esi]
sub edi, ecx
cmp edi, edx
mov dword [ebp - 0x1c], edi
jle 0x476055
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push edi
push ecx
mov ecx, dword [ebp + 8]
push ecx
call eax
add dword [ebp - 0x10], edi
add esp, 0xc
xor edx, edx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edx
mov ecx, dword [esi + 0x28]
mov eax, ecx
and eax, 0xff000000
cmp eax, 0x8000000
ja 0x476142
je 0x476123
cmp eax, 0x1000000
je 0x476102
cmp eax, 0x2000000
je 0x4760b3
cmp eax, 0x4000000
jne 0x4761b9
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x250]
push esi
mov dword [ebp - 0x28], ecx
call fcn.0046e990
add esp, 8
mov ebx, eax
jmp 0x4761b6
lea eax, [ebp - 0x450]
mov dword [ebp - 0x28], eax
mov dword [esi + 0xc], edx
test cl, 4
je 0x4760ea
mov ecx, dword [esi + 0x2c]
movzx eax, word [ecx + 8]
push eax
lea edx, [ebp - 0x450]
push edx
call dword [0x4bede8]
add esp, 8
cmp eax, 0xffffffff
jne 0x4760fb
xor eax, eax
mov ebx, eax
jmp 0x4761b6
mov eax, dword [esi + 0x2c]
mov cl, byte [eax + 8]
mov byte [ebp - 0x450], cl
mov eax, 1
mov ebx, eax
jmp 0x4761b6
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x450]
push esi
mov dword [ebp - 0x28], edx
call fcn.00468770
add esp, 0xc
mov ebx, eax
jmp 0x4761b6
push 0x4be92c
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x450]
push esi
mov dword [ebp - 0x28], edx
call fcn.00473910
add esp, 0xc
mov ebx, eax
jmp 0x4761b6
cmp eax, 0x10000000
je 0x4761aa
cmp eax, 0x20000000
je 0x476096
cmp eax, 0x40000000
jne 0x4761b9
mov edx, dword [esi + 0x2c]
mov esi, dword [edx + 8]
test cl, 1
je 0x476170
mov al, byte [ebp - 0x10]
mov byte [esi], al
jmp 0x4763c7
test cl, 2
je 0x476181
mov cx, word [ebp - 0x10]
mov word [esi], cx
jmp 0x4763c7
test cl, 4
je 0x476190
mov edx, dword [ebp - 0x10]
mov dword [esi], edx
jmp 0x4763c7
mov eax, dword [ebp - 0x10]
test cl, 8
je 0x4761a3
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x4763c7
mov dword [esi], eax
jmp 0x4763c7
mov dword [ebp - 0x28], 0x4a7458
mov ebx, 1
mov dword [ebp - 0x24], ebx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], eax
jle 0x4761d4
mov dword [ebp - 8], eax
jmp 0x4761d9
mov eax, ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0xc], 0
je 0x4761e2
inc eax
jmp 0x4761ed
test ecx, 0x800
je 0x4761f0
add eax, 2
mov dword [ebp - 8], eax
mov eax, ecx
and eax, 0x600
mov dword [ebp - 0x50], eax
jne 0x47624e
mov ebx, dword [ebp - 0x18]
sub ebx, dword [ebp - 8]
test ebx, ebx
jle 0x47624e
cmp ebx, 0x10
jle 0x47623a
lea edi, [ebx - 0x11]
shr edi, 4
inc edi
mov ecx, edi
neg ecx
shl ecx, 4
add ebx, ecx
jmp 0x476220
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0x10
push str.________________0000000000000000
push edx
call ecx
add esp, 0xc
sub edi, 1
jne 0x476220
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ebx
push str.________________0000000000000000
push edx
call ecx
add esp, 0xc
cmp dword [esi + 0xc], 0
je 0x47626d
mov dl, byte [esi + 0xc]
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp + 0x13]
mov byte [ebp + 0x13], dl
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [edx]
push ecx
call eax
jmp 0x476291
test dword [ebp - 0x40], 0x800
je 0x476294
mov cl, byte [esi + 8]
mov eax, dword [ebp + 8]
push 2
lea edx, [ebp - 0x38]
mov byte [ebp - 0x37], cl
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ecx]
push eax
mov byte [ebp - 0x38], 0x30
call edx
add esp, 0xc
cmp dword [ebp - 0x50], 0x400
jne 0x4762eb
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 8]
test edi, edi
jle 0x4762eb
cmp edi, 0x10
jle 0x4762d7
mov ebx, dword [ebp + 0xc]
lea esi, [edi - 0x11]
shr esi, 4
inc esi
mov eax, esi
neg eax
shl eax, 4
add edi, eax
nop
mov ecx, dword [ebp + 8]
mov edx, dword [ebx]
push 0x10
push 0x4a7350
push ecx
call edx
add esp, 0xc
sub esi, 1
jne 0x4762c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edi
push 0x4a7350
push eax
call edx
add esp, 0xc
mov edi, dword [ebp - 0x4c]
sub edi, dword [ebp - 0x24]
test edi, edi
jle 0x47633b
cmp edi, 0x10
jle 0x476327
mov ebx, dword [ebp + 0xc]
lea esi, [edi - 0x11]
shr esi, 4
inc esi
mov eax, esi
neg eax
shl eax, 4
add edi, eax
lea ecx, [ecx]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx]
push 0x10
push 0x4a7350
push ecx
call edx
add esp, 0xc
sub esi, 1
jne 0x476310
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edi
push 0x4a7350
push eax
call edx
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
mov eax, dword [ebx]
push ecx
push edx
call eax
add esp, 0xc
test dword [ebp - 0x40], 0x200
je 0x4763a8
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 8]
test edi, edi
jle 0x4763a8
cmp edi, 0x10
jle 0x476397
lea esi, [edi - 0x11]
shr esi, 4
inc esi
mov ecx, esi
neg ecx
shl ecx, 4
add edi, ecx
lea esp, [esp]
mov edx, dword [ebp + 8]
mov eax, dword [ebx]
push 0x10
push str.________________0000000000000000
push edx
call eax
add esp, 0xc
sub esi, 1
jne 0x476380
mov ecx, dword [ebp + 8]
mov edx, dword [ebx]
push edi
push str.________________0000000000000000
push ecx
call edx
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp ecx, eax
jle 0x4763b4
mov eax, ecx
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4763c7
push eax
call fcn.00466520
add esp, 4
mov eax, dword [ebp - 0x34]
inc eax
cmp eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
jl 0x475fb0
xor edx, edx
cmp eax, dword [ebp - 0x30]
jne 0x4763e4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x4754c0
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
sub esi, eax
test esi, esi
jle 0x47640f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [edx]
push ecx
call eax
add esp, 0xc
add dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push ecx
call eax
mov eax, dword [ebp - 0x10]
add esp, 4
lea esp, [ebp - 0xadc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret