Function at 0x470090
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov ecx, dword [ebp + 8]
push ebx
push esi
xor eax, eax
mov esi, dword [ecx + 4]
push edi
cmp esi, eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], eax
jne 0x4700bf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x48]
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp - 0x20]
mov edx, 1
mov eax, dword [ebx + 0xc]
cmp eax, edx
jle 0x470176
lea edi, [eax - 1]
mov eax, dword [ebx + 0x4c]
test eax, 0x10000000
mov dword [ebx + 0xc], edi
je 0x4701d1
test eax, 0x20000000
je 0x4701d1
mov ecx, dword [ebp + 0xc]
movsx ecx, byte [ecx]
cmp ecx, 2
jne 0x470155
mov edx, dword [ebp - 8]
test edx, edx
jne 0x470155
cmp dword [ebp - 4], 1
jg 0x470155
or eax, 0x20000000
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x4c]
and eax, 0xbfffffff
push esi
mov dword [ebx + 0x4c], eax
call fcn.004874c0
add esp, 4
test eax, eax
jne 0x47105f
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0xc], edi
test eax, 0x10000000
je 0x47014b
test eax, 0x20000000
jne 0x470ead
or eax, 0x20000000
mov dword [ebx + 0x4c], eax
jmp 0x4701d1
and eax, 0xdfffffff
cmp ecx, 1
mov dword [ebx + 0x4c], eax
jne 0x470117
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x470117
cmp dword [ebp - 4], 1
jg 0x470117
or eax, 0x40000000
jmp 0x47011f
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp ecx, 2
jne 0x47022d
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47022d
cmp dword [ebp - 4], edx
jg 0x47022d
or dword [ebx + 0x4c], 0x20000000
mov eax, dword [ebx + 0x4c]
and eax, 0xbfffffff
push esi
mov dword [ebx + 0x4c], eax
call fcn.004874c0
add esp, 4
test eax, eax
jne 0x47105f
mov eax, dword [ebx + 0x4c]
test eax, 0x10000000
je 0x4701d1
test eax, 0x20000000
jne 0x470eba
movsx eax, byte [ebx + 0x48]
add eax, 0xfffffffe
cmp eax, 0x1a
ja case.0x4701e9.7
xor ecx, ecx
mov cl, byte [eax + 0x4710cc]
jmp dword [ecx*4 + 0x4710b4]
mov eax, dword [esi + 0x7c]
xor ebx, ebx
test eax, eax
je 0x47020a
xor ecx, ecx
mov cl, byte [eax + 0x1e]
test ecx, ecx
je 0x47020a
mov byte [eax + 0x1e], bl
mov ebx, 1
test byte [esi + 0x12c], 4
je 0x470275
cmp byte [esi + 0x11e], 1
jne 0x470275
mov eax, dword [esi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x47025e
mov byte [eax + 5], 0x24
jmp 0x470267
mov eax, dword [ebx + 0x4c]
and eax, 0xdfffffff
cmp ecx, edx
mov dword [ebx + 0x4c], eax
jne 0x4701a0
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x4701a0
cmp dword [ebp - 4], edx
jg 0x4701a0
or eax, 0x40000000
jmp 0x4701a8
cmp cl, 0x2b
jne 0x470267
mov byte [eax + 5], 0
mov eax, dword [esi + 0x12c]
and al, 0xfb
mov dword [esi + 0x12c], eax
push esi
call fcn.00488a00
add esp, 4
test eax, eax
jne 0x47105f
mov edi, dword [esi + 0x90]
mov ecx, dword [esi + 0x12c]
add edi, 1
push eax
mov dword [esi + 0x90], edi
mov edx, dword [esi + 0x94]
adc edx, eax
and ecx, 0xfff7ffff
push esi
mov dword [esi + 0x94], edx
mov dword [esi + 0x12c], ecx
call fcn.00489a70
add esp, 8
test eax, eax
jne 0x470eea
mov dl, byte [esi + 0x11c]
movsx eax, dl
dec eax
cmp eax, 6
ja case.default.0x4702da
jmp dword [eax*4 + 0x4710e8]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4702f0
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x4702f9
mov edx, dword [esi + 0x28]
add edx, 4
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx - 8]
mov dword [esi + 0x34], edx
jmp 0x47038f
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x470318
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb4]
mov edx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx - 1]
mov dword [esi + 0x34], eax
jmp 0x47038f
mov eax, dword [esi + 0x30]
test eax, eax
je 0x470338
mov dword [esi + 0x2c], eax
jmp 0x47033e
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], ecx
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x2c]
add ecx, eax
mov eax, dword [esi + 0x12c]
test eax, 0x8000000
mov dword [esi + 0x34], ecx
je 0x4703b4
mov eax, dword [esi + 0x128]
test ah, 1
je 0x47038f
test ah, 0x10
je 0x47038f
cmp dl, 1
jne 0x47038f
add ecx, 0xfffffffe
mov dword [esi + 0x34], ecx
jmp 0x47038f
push 0x3f7
push 0x4b88c4
push 2
push 0xc0000008
call fcn.00482080
add esp, 0x10
test dword [esi + 0x12c], 0x8000000
je 0x4703b4
mov eax, dword [esi + 0x128]
test ah, 1
je 0x4703b4
test ah, 0x10
je 0x4703b4
cmp byte [esi + 0x11c], 1
je 0x4703ea
mov al, byte [esi + 0x11e]
cmp al, 2
jne 0x4703d1
mov al, byte [esi + 0x11c]
cmp al, 7
je 0x4703ea
cmp al, 6
je 0x4703ea
dec dword [esi + 0x34]
jmp 0x4703ea
cmp al, 1
jne 0x4703ea
mov al, byte [esi + 0x11c]
cmp al, 7
je 0x4703e6
cmp al, 6
je 0x4703e6
dec dword [esi + 0x34]
add dword [esi + 0x2c], 5
mov edi, dword [esi + 0x2c]
mov ecx, dword [esi + 0x34]
sub ecx, edi
mov eax, 0x20202020
mov edx, ecx
mov dword [esi + 0x38], edi
shr ecx, 2
mov dword [esi + 0x3c], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
test ebx, ebx
mov dword [esi + 0xf0], 0
je 0x4700c5
mov eax, dword [esi + 0x7c]
mov byte [eax + 0x1e], 1
jmp 0x4700c5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
cmp al, 1
je 0x47044e
cmp al, 2
je 0x47044a
test dword [ebx + 0x4c], 0x200000
je 0x470dfa
cmp al, 1
jne 0x470458
cmp dword [ebp - 4], 2
jl 0x470e51
cmp al, 2
jne 0x47046c
mov ecx, dword [ebp - 4]
mov eax, 2
cmp ecx, eax
jl 0x470ec2
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x470487
xor ecx, ecx
mov cl, byte [eax + 0x1e]
test ecx, ecx
je 0x470487
mov byte [eax + 0x1e], 0
mov dword [ebp - 0x2c], 1
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x4704b6
mov eax, dword [esi + 0x130]
mov dword [esi + 0xf0], 0
test eax, 0x20000
jne 0x4704b6
mov eax, dword [esi + 0xf8]
test eax, eax
jne 0x4706a3
test byte [esi + 0x12c], 4
je 0x4704f0
cmp byte [esi + 0x11e], 1
jne 0x4704f0
mov eax, dword [esi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x4704d9
mov byte [eax + 5], 0x24
jmp 0x4704e2
cmp cl, 0x2b
jne 0x4704e2
mov byte [eax + 5], 0
mov eax, dword [esi + 0x12c]
and al, 0xfb
mov dword [esi + 0x12c], eax
push esi
call fcn.00488a00
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x47105f
mov edi, dword [esi + 0x90]
mov ecx, dword [esi + 0x12c]
add edi, 1
push ebx
mov dword [esi + 0x90], edi
mov edx, dword [esi + 0x94]
adc edx, ebx
and ecx, 0xfff7ffff
push esi
mov dword [esi + 0x94], edx
mov dword [esi + 0x12c], ecx
call fcn.00489a70
add esp, 8
test eax, eax
jne 0x470eea
mov dl, byte [esi + 0x11c]
movsx eax, dl
dec eax
cmp eax, 6
ja case.default.0x470557
jmp dword [eax*4 + 0x471104]
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x47056d
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x470576
mov edx, dword [esi + 0x28]
add edx, 4
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx - 8]
mov dword [esi + 0x34], edx
jmp 0x47060c
mov eax, dword [esi + 0x30]
cmp eax, ebx
jne 0x470595
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb4]
mov edx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx - 1]
mov dword [esi + 0x34], eax
jmp 0x47060c
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x4705b5
mov dword [esi + 0x2c], eax
jmp 0x4705bb
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], ecx
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x2c]
add ecx, eax
mov eax, dword [esi + 0x12c]
test eax, 0x8000000
mov dword [esi + 0x34], ecx
je 0x470631
mov eax, dword [esi + 0x128]
test ah, 1
je 0x47060c
test ah, 0x10
je 0x47060c
cmp dl, 1
jne 0x47060c
add ecx, 0xfffffffe
mov dword [esi + 0x34], ecx
jmp 0x47060c
push 0x4c7
push str.E:_forrtl_build_for_wseq_fmt.c
push 2
push 0xc0000008
call fcn.00482080
add esp, 0x10
test dword [esi + 0x12c], 0x8000000
je 0x470631
mov eax, dword [esi + 0x128]
test ah, 1
je 0x470631
test ah, 0x10
je 0x470631
cmp byte [esi + 0x11c], 1
je 0x470667
mov al, byte [esi + 0x11e]
cmp al, 2
jne 0x47064e
mov al, byte [esi + 0x11c]
cmp al, 7
je 0x470667
cmp al, 6
je 0x470667
dec dword [esi + 0x34]
jmp 0x470667
cmp al, 1
jne 0x470667
mov al, byte [esi + 0x11c]
cmp al, 7
je 0x470663
cmp al, 6
je 0x470663
dec dword [esi + 0x34]
add dword [esi + 0x2c], 5
mov edi, dword [esi + 0x2c]
mov ecx, dword [esi + 0x34]
sub ecx, edi
mov eax, 0x20202020
mov edx, ecx
mov dword [esi + 0x38], edi
shr ecx, 2
mov dword [esi + 0x3c], ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x130]
mov dword [esi + 0xf8], 1
and eax, 0xfffdffff
mov dword [esi + 0x130], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4706b1
mov eax, dword [esi + 0x7c]
mov byte [eax + 0x1e], 1
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x3c], ecx
jmp 0x4700c5
mov ecx, dword [ebp - 0x20]
xor edi, edi
mov eax, dword [ecx + 0x38]
mov ebx, dword [ecx + 0x3c]
test eax, eax
jle 0x47071c
mov edx, dword [esi + 0x2c]
mov al, byte [edi + ebx]
mov byte [edx], al
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x34]
inc eax
cmp eax, edx
mov dword [esi + 0x2c], eax
jbe 0x470714
mov eax, dword [ecx + 0x38]
cmp eax, 0x200
jg 0x4706f0
mov eax, 0x200
mov ecx, dword [esi + 0xb4]
shr ecx, 3
cmp ecx, eax
jle 0x4706ff
mov eax, ecx
push eax
push esi
call fcn.00487cb0
add esp, 8
test eax, eax
jne 0x470f5f
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x38]
inc edi
cmp edi, eax
jl 0x4706cb
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
ja 0x470728
mov eax, ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x130]
or eax, 0x20000
mov dword [esi + 0xf0], 0
mov dword [esi + 0x130], eax
jmp 0x4700c5
cmp dword [ebp - 4], 2
jge 0x4700c5
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
cmp al, 1
je 0x470e51
cmp al, 2
je 0x470f22
mov edx, dword [ebp - 4]
lea eax, [ebp + 0x10]
push edx
lea ecx, [ebp + 0xc]
push eax
push ecx
call fcn.00481f70
add esp, 0xc
cmp eax, 2
je 0x470f22
cmp eax, 1
je 0x470e51
jmp 0x4700c5
mov eax, dword [esi + 0x12c]
test eax, 0x8000000
je 0x4707b4
mov edx, dword [esi + 0x7c]
mov byte [edx + 0x1e], 1
mov eax, dword [esi + 0x7c]
mov dword [eax + 0xc], esi
jmp 0x4700c5
or al, 4
mov dword [esi + 0x12c], eax
jmp 0x4700c5
mov eax, dword [ebp - 4]
mov ecx, 1
cmp eax, ecx
jle 0x470886
mov eax, dword [ebp - 0xac]
cmp eax, 8
je 0x47080a
cmp eax, 7
je 0x47080a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add edx, ecx
test eax, eax
mov dword [ebp - 0x1c], edx
je 0x470881
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], 0
dec ecx
mov dword [ebp - 4], ecx
jmp 0x470902
mov eax, dword [ebp - 8]
test eax, eax
je 0x47082f
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add ecx, edx
dec eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x470a62
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x470839
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xa8]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x470861
mov edi, dword [ebp + eax*4 - 0x4c]
sub edi, dword [ebp + eax*4 - 0xc8]
imul edi, dword [ebp + eax*4 - 0xe4]
add ecx, edi
inc eax
cmp eax, edx
jl 0x470847
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0x4c]
add eax, ecx
lea ecx, [ebp - 0xac]
push ecx
push edx
push 0
mov dword [ebp - 0x1c], eax
call fcn.00487e80
add esp, 0xc
dec dword [ebp - 4]
jmp 0x470902
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp + 0x10]
push ecx
lea eax, [ebp + 0xc]
push edx
push eax
call fcn.00481c30
add esp, 0x10
test eax, eax
jne 0x47105f
mov ecx, dword [ebp - 0x14]
mov edx, 2
cmp ecx, edx
je 0x470f32
mov edi, 1
cmp ecx, edi
je 0x470e51
mov eax, dword [ebp - 0xac]
cmp eax, 8
je 0x470969
cmp eax, 7
je 0x470969
cmp eax, 5
je 0x470922
cmp eax, 6
je 0x470922
cmp ecx, 0x1c
jl 0x4708f2
cmp ecx, 0x2c
jle 0x4708f7
cmp ecx, 0x34
jne 0x4708ff
mov dword [ebp - 4], edx
mov dword [ebp - 8], edi
jmp 0x470902
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x130]
mov dword [esi + 0xf0], 0
or eax, 0x20000
mov dword [esi + 0x130], eax
jmp 0x470a62
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x470931
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
jmp 0x470945
mov eax, dword [esi + 0x12c]
mov ecx, dword [ebp - 0x18]
and eax, 0x100
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 0x12c]
mov dword [ebp - 4], eax
test ch, 1
je 0x470a62
test eax, eax
jne 0x470902
mov dword [esi + 0xf0], edi
mov dword [ebp - 0x24], edi
jmp 0x470a69
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x470989
mov eax, dword [ebp - 0x18]
cdq
idiv edi
test eax, eax
mov dword [ebp - 4], eax
jne 0x4709ac
mov dword [ebp - 0x24], 1
jmp 0x470a69
mov eax, dword [esi + 0x12c]
test ah, 1
je 0x470999
mov eax, dword [ebp - 0x18]
jmp 0x470976
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
jmp 0x470a69
cmp ecx, 0x1c
jl 0x4709b6
cmp ecx, 0x2c
jle 0x4709bb
cmp ecx, 0x34
jne 0x4709c8
mov eax, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], eax
jmp 0x4709cf
mov dword [ebp - 0x28], 0
mov edi, dword [ebp - 0xa8]
xor eax, eax
test edi, edi
jle 0x470a00
lea ecx, [ebp - 0x98]
mov edx, dword [ecx - 4]
mov ebx, dword [ecx]
mov dword [ebp + eax*4 - 0xc8], edx
mov dword [ebp + eax*4 - 0xe4], ebx
mov dword [ebp + eax*4 - 0x4c], edx
inc eax
add ecx, 0xc
cmp eax, edi
jl 0x4709e1
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x470a24
mov edx, dword [ebp + eax*4 - 0x4c]
mov ebx, dword [ebp + eax*4 - 0xc8]
sub edx, ebx
imul edx, dword [ebp + eax*4 - 0xe4]
add ecx, edx
inc eax
cmp eax, edi
jl 0x470a08
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0x4c]
add eax, ecx
lea ecx, [ebp - 0xac]
push ecx
push edx
push 0
mov dword [ebp - 0x1c], eax
call fcn.00487e80
mov eax, dword [esi + 0x130]
mov ebx, dword [ebp - 0x20]
add esp, 0xc
or eax, 0x20000
mov dword [esi + 0xf0], 0
mov dword [esi + 0x130], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x470a85
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x470a7c
mov dword [ebx + 0xc], 2
jmp 0x4700c5
inc eax
mov dword [ebx + 0xc], eax
jmp 0x4700c5
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx]
and edx, 0xf7ffffff
mov dword [ebx + 0x4c], edx
mov ecx, dword [eax + 0x12c]
test ecx, 0x10000
je 0x470ac2
movsx ecx, byte [ebx + 0x48]
mov ecx, dword [ecx*4 + 0x4b0eb0]
test ecx, ecx
je 0x470ac2
mov eax, dword [ebp - 0x14]
movsx ecx, byte [ecx + eax]
test ecx, ecx
je 0x470ac5
mov eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x470ac5
mov eax, dword [ebp - 0x14]
movsx ecx, byte [ebx + 0x48]
add ecx, 0xffffffed
cmp ecx, 0x20
ja case.0x470add.30
xor edx, edx
mov dl, byte [ecx + 0x471150]
jmp dword [edx*4 + 0x471120]
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x38], eax
jmp case.0x470add.30
cmp eax, 5
jl 0x470f43
cmp eax, 0x11
jg 0x470f43
mov dword [ebx + 0x38], 2
jmp case.0x470add.30
cmp eax, 0x19
jl 0x470f43
cmp eax, 0x34
jg 0x470f43
lea eax, [eax*8 - 0xc8]
movsx edx, word [eax + 0x4b0d50]
mov dword [ebx + 0x38], edx
mov cx, word [eax + 0x4b0d54]
mov word [ebx + 0x40], cx
mov dx, word [eax + 0x4b0d56]
mov word [ebx + 0x42], dx
jmp case.0x470add.30
cmp eax, 0x19
jl case.0x470add.22
cmp eax, 0x34
jg case.0x470add.22
lea eax, [eax*8 - 0xc8]
movsx ecx, word [eax + 0x4b0d50]
mov dword [ebx + 0x38], ecx
mov dx, word [eax + 0x4b0d54]
mov word [ebx + 0x40], dx
mov ax, word [eax + 0x4b0d56]
mov word [ebx + 0x42], ax
jmp case.0x470add.30
cmp eax, 5
jl 0x470f43
cmp eax, 0x11
jg 0x470f43
movsx ecx, byte [eax + 0x4b0c77]
jmp 0x470c70
movsx eax, word [eax*2 + 0x4b0ccc]
cmp eax, 0xffffffff
mov dword [ebx + 0x38], eax
jne case.0x470add.30
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
cmp eax, 0x11
jge 0x470bc7
mov eax, 0x11
mov dword [ebx + 0x38], eax
jmp case.0x470add.30
movsx eax, byte [eax + 0x4b0c8c]
cmp eax, 0xffffffff
mov dword [ebx + 0x38], eax
jne case.0x470add.30
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
cmp eax, 7
jge 0x470bf2
mov eax, 7
mov dword [ebx + 0x38], eax
jmp case.0x470add.30
mov eax, dword [ebx + 0x38]
test eax, eax
jne case.0x470add.30
mov eax, dword [ebx + 0x50]
or al, 2
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x4b0c77]
jmp 0x470c70
mov eax, dword [ebx + 0x38]
test eax, eax
jne case.0x470add.30
mov eax, dword [ebx + 0x50]
or al, 2
mov dword [ebx + 0x50], eax
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 0x4b0c8c]
mov dword [ebx + 0x38], eax
jmp case.0x470add.30
mov eax, dword [ebx + 0x38]
test eax, eax
jne case.0x470add.30
mov eax, dword [ebx + 0x50]
or al, 2
mov dword [ebx + 0x50], eax
mov ecx, dword [ebp - 0x14]
movsx edx, word [ecx*2 + 0x4b0ccc]
mov dword [ebx + 0x38], edx
jmp case.0x470add.30
mov eax, dword [ebx + 0x38]
test eax, eax
jne case.0x470add.30
mov ecx, dword [ebx + 0x50]
movsx edx, word [ebx + 0x40]
or ecx, 2
mov dword [ebx + 0x50], ecx
mov eax, dword [ebp - 0x14]
movsx ecx, word [eax*8 + 0x4b0c8a]
add ecx, edx
mov dword [ebx + 0x38], ecx
test byte [ebx + 0x50], 2
je 0x470d1b
mov eax, dword [ebx + 0x38]
cmp eax, 0x40
ja 0x470c97
lea edi, [ebp - 0x124]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], edi
jmp 0x470cb4
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
call fcn.00481ba0
add esp, 0xc
test eax, eax
jne 0x47105f
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x30], edi
mov ecx, dword [ebx + 0x38]
mov eax, 0x20202020
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
push eax
push ebx
push ecx
call fcn.00485fa0
add esp, 0xc
test eax, eax
je 0x470cfd
cmp eax, 0x8000003f
jne 0x47105f
test dword [esi + 0x12c], 0x100000
jne 0x470cfd
mov dword [ebx + 0x10], 0x8000003f
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x470d1b
mov edx, dword [ebp - 0xc]
cmp byte [edx], 0x20
jne 0x470d1b
mov ecx, edx
inc ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x38]
dec eax
mov dword [ebx + 0x38], eax
jne 0x470d04
mov eax, dword [ebx + 0x38]
mov edi, dword [esi + 0x2c]
mov edx, dword [esi + 0x34]
mov ecx, eax
add ecx, edi
cmp ecx, edx
jbe 0x470d59
cmp eax, 0x200
jg 0x470d38
mov eax, 0x200
mov ecx, dword [esi + 0xb4]
shr ecx, 3
cmp ecx, eax
jle 0x470d47
mov eax, ecx
push eax
push esi
call fcn.00487cb0
add esp, 8
test eax, eax
jne 0x470f5f
test byte [ebx + 0x50], 2
je 0x470da8
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x470d8a
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + 0x2c]
mov cl, byte [eax]
mov eax, dword [ebp - 0x20]
mov byte [edx], cl
mov edi, dword [esi + 0x2c]
inc edi
mov dword [esi + 0x2c], edi
mov edx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0xc], edx
mov ecx, dword [eax + 0x38]
dec ecx
mov dword [eax + 0x38], ecx
jne 0x470d66
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x50]
and edx, 0xfffffffd
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x470de6
push eax
call fcn.00481c10
add esp, 4
jmp 0x470de6
mov edx, dword [esi + 0x2c]
lea eax, [ebp - 0x1c]
push edx
push ebx
push eax
call fcn.00485fa0
add esp, 0xc
test eax, eax
je 0x470ddb
cmp eax, 0x8000003f
jne 0x47105f
test dword [esi + 0x12c], 0x100000
jne 0x470ddb
mov dword [ebx + 0x10], 0x8000003f
mov ecx, dword [ebx + 0x38]
mov eax, dword [esi + 0x2c]
add eax, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
ja 0x470df2
mov eax, ecx
mov dword [esi + 0x3c], eax
jmp 0x4700c5
mov eax, dword [esi + 0x12c]
test ah, 1
je 0x470ece
test dword [ebx + 0x4c], 0x80000000
je 0x470ece
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xac]
push edx
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp + 0x10]
push ecx
lea eax, [ebp + 0xc]
push edx
push eax
call fcn.00482000
add esp, 0x14
test eax, eax
je 0x470ece
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 2
jne 0x470e51
mov ecx, dword [ebp - 4]
mov eax, 2
cmp ecx, eax
jl 0x470ec2
mov eax, dword [esi + 0x7c]
xor edi, edi
cmp eax, edi
je 0x470e69
xor edx, edx
mov dl, byte [eax + 0x1e]
mov eax, edx
cmp eax, edi
jne 0x471022
cmp dword [esi + 0xf0], edi
jne 0x470e86
cmp dword [ebp - 0x24], edi
je 0x470f87
cmp dword [esi + 0xf8], edi
je 0x470f87
mov eax, dword [esi + 0x130]
mov dword [esi + 0xf0], edi
test eax, 0x20000
je 0x470f7b
and eax, 0xfffdffff
mov dword [esi + 0x130], eax
jmp 0x470f87
inc edi
xor eax, eax
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x470ec5
inc eax
mov dword [ebx + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0xc000003c
push 0xc000003c
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0xc0000026
push 0xc0000026
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0xc000002c
push 0xc000002c
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0xc], 2
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x470ec1
pop edi
mov dword [ebx + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0xc000003d
push 0xc000003d
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0xc0000042
push 0xc0000042
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xf8], edi
jne 0x471022
test byte [esi + 0x12c], 4
je 0x470fc1
cmp byte [esi + 0x11e], 1
jne 0x470fc1
mov eax, dword [esi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x470faa
mov byte [eax + 5], 0x24
jmp 0x470fb3
cmp cl, 0x2b
jne 0x470fb3
mov byte [eax + 5], 0
mov eax, dword [esi + 0x12c]
and al, 0xfb
mov dword [esi + 0x12c], eax
push esi
call fcn.00488a00
add esp, 4
cmp eax, edi
je 0x470fe2
push esi
push eax
push eax
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x12c]
add eax, 1
mov dword [esi + 0x90], eax
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x130]
adc edx, edi
and ecx, 0xfff7ffff
and eax, 0xfffdffff
mov dword [esi + 0x94], edx
mov dword [esi + 0x12c], ecx
mov dword [esi + 0x130], eax
mov eax, dword [ebx + 0x4c]
test eax, 0x2000000
je 0x471058
and eax, 0xfdffffff
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 4]
push eax
call fcn.00481c10
add esp, 4
cmp eax, edi
je 0x471058
push esi
push eax
push eax
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x471073
push esi
push eax
push eax
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x128]
mov ebx, dword [esi + 0x12c]
mov ecx, dword [esi + 0xbc]
and eax, 0xfdc6ffff
and ebx, 0xfffffddf
push ecx
mov dword [esi + 0x128], eax
mov dword [esi + 0x12c], ebx
call fcn.00485c70
mov edx, dword [ebp + 8]
add esp, 4
mov dword [edx + 4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret