Function at 0x40d560
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 0x40d58f
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 0x40d646
lea edi, [eax - 1]
mov eax, dword [ebx + 0x4c]
test eax, 0x10000000
mov dword [ebx + 0xc], edi
je 0x40d6a1
test eax, 0x20000000
je 0x40d6a1
mov ecx, dword [ebp + 0xc]
movsx ecx, byte [ecx]
cmp ecx, 2
jne 0x40d625
mov edx, dword [ebp - 8]
test edx, edx
jne 0x40d625
cmp dword [ebp - 4], 1
jg 0x40d625
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.00419540
add esp, 4
test eax, eax
jne 0x40e501
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0xc], edi
test eax, 0x10000000
je 0x40d61b
test eax, 0x20000000
jne 0x40e35f
or eax, 0x20000000
mov dword [ebx + 0x4c], eax
jmp 0x40d6a1
and eax, 0xdfffffff
cmp ecx, 1
mov dword [ebx + 0x4c], eax
jne 0x40d5e7
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x40d5e7
cmp dword [ebp - 4], 1
jg 0x40d5e7
or eax, 0x40000000
jmp 0x40d5ef
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp ecx, 2
jne 0x40d6fd
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40d6fd
cmp dword [ebp - 4], edx
jg 0x40d6fd
or dword [ebx + 0x4c], 0x20000000
mov eax, dword [ebx + 0x4c]
and eax, 0xbfffffff
push esi
mov dword [ebx + 0x4c], eax
call fcn.00419540
add esp, 4
test eax, eax
jne 0x40e501
mov eax, dword [ebx + 0x4c]
test eax, 0x10000000
je 0x40d6a1
test eax, 0x20000000
jne 0x40e36c
movsx eax, byte [ebx + 0x48]
add eax, 0xfffffffe
cmp eax, 0x1a
ja case.0x40d6b9.7
xor ecx, ecx
mov cl, byte [eax + 0x40e56c]
jmp dword [ecx*4 + 0x40e554]
mov eax, dword [esi + 0x7c]
xor ebx, ebx
test eax, eax
je 0x40d6da
xor ecx, ecx
mov cl, byte [eax + 0x1e]
test ecx, ecx
je 0x40d6da
mov byte [eax + 0x1e], bl
mov ebx, 1
test byte [esi + 0x11c], 4
je 0x40d745
cmp byte [esi + 0x10e], 1
jne 0x40d745
mov eax, dword [esi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x40d72e
mov byte [eax + 5], 0x24
jmp 0x40d737
mov eax, dword [ebx + 0x4c]
and eax, 0xdfffffff
cmp ecx, edx
mov dword [ebx + 0x4c], eax
jne 0x40d670
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x40d670
cmp dword [ebp - 4], edx
jg 0x40d670
or eax, 0x40000000
jmp 0x40d678
cmp cl, 0x2b
jne 0x40d737
mov byte [eax + 5], 0
mov eax, dword [esi + 0x11c]
and al, 0xfb
mov dword [esi + 0x11c], eax
push esi
call fcn.00414cb0
add esp, 4
test eax, eax
jne 0x40e501
mov edx, dword [esi + 0x90]
mov ecx, dword [esi + 0x11c]
inc edx
and ecx, 0xfff7ffff
push eax
push esi
mov dword [esi + 0x90], edx
mov dword [esi + 0x11c], ecx
call fcn.00415d30
add esp, 8
test eax, eax
jne 0x40e39c
mov dl, byte [esi + 0x10c]
movsx eax, dl
dec eax
cmp eax, 6
ja case.default.0x40d79a
jmp dword [eax*4 + 0x40e588]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40d7b0
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x40d7b9
mov edx, dword [esi + 0x28]
add edx, 4
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx - 8]
mov dword [esi + 0x34], edx
jmp 0x40d84f
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x40d7d8
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb0]
mov edx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx - 1]
mov dword [esi + 0x34], eax
jmp 0x40d84f
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40d7f8
mov dword [esi + 0x2c], eax
jmp 0x40d7fe
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], ecx
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x2c]
add ecx, eax
mov eax, dword [esi + 0x11c]
test eax, 0x8000000
mov dword [esi + 0x34], ecx
je 0x40d874
mov eax, dword [esi + 0x118]
test ah, 1
je 0x40d84f
test ah, 0x10
je 0x40d84f
cmp dl, 1
jne 0x40d84f
add ecx, 0xfffffffe
mov dword [esi + 0x34], ecx
jmp 0x40d84f
push 0x3e7
push 0x452500
push 2
push 0xc0000008
call fcn.00410a90
add esp, 0x10
test dword [esi + 0x11c], 0x8000000
je 0x40d874
mov eax, dword [esi + 0x118]
test ah, 1
je 0x40d874
test ah, 0x10
je 0x40d874
cmp byte [esi + 0x10c], 1
je 0x40d8aa
mov al, byte [esi + 0x10e]
cmp al, 2
jne 0x40d891
mov al, byte [esi + 0x10c]
cmp al, 7
je 0x40d8aa
cmp al, 6
je 0x40d8aa
dec dword [esi + 0x34]
jmp 0x40d8aa
cmp al, 1
jne 0x40d8aa
mov al, byte [esi + 0x10c]
cmp al, 7
je 0x40d8a6
cmp al, 6
je 0x40d8a6
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 + 0xe4], 0
je 0x40d595
mov eax, dword [esi + 0x7c]
mov byte [eax + 0x1e], 1
jmp 0x40d595
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
cmp al, 1
je 0x40d90e
cmp al, 2
je 0x40d90a
test dword [ebx + 0x4c], 0x200000
je 0x40e2ac
cmp al, 1
jne 0x40d918
cmp dword [ebp - 4], 2
jl 0x40e303
cmp al, 2
jne 0x40d92c
mov ecx, dword [ebp - 4]
mov eax, 2
cmp ecx, eax
jl 0x40e374
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x40d947
xor ecx, ecx
mov cl, byte [eax + 0x1e]
test ecx, ecx
je 0x40d947
mov byte [eax + 0x1e], 0
mov dword [ebp - 0x2c], 1
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x40d976
mov eax, dword [esi + 0x120]
mov dword [esi + 0xe4], 0
test eax, 0x20000
jne 0x40d976
mov eax, dword [esi + 0xec]
test eax, eax
jne 0x40db55
test byte [esi + 0x11c], 4
je 0x40d9b0
cmp byte [esi + 0x10e], 1
jne 0x40d9b0
mov eax, dword [esi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x40d999
mov byte [eax + 5], 0x24
jmp 0x40d9a2
cmp cl, 0x2b
jne 0x40d9a2
mov byte [eax + 5], 0
mov eax, dword [esi + 0x11c]
and al, 0xfb
mov dword [esi + 0x11c], eax
push esi
call fcn.00414cb0
add esp, 4
test eax, eax
jne 0x40e501
mov ecx, dword [esi + 0x90]
mov eax, dword [esi + 0x11c]
inc ecx
and eax, 0xfff7ffff
push 0
push esi
mov dword [esi + 0x90], ecx
mov dword [esi + 0x11c], eax
call fcn.00415d30
add esp, 8
test eax, eax
jne 0x40e39c
mov dl, byte [esi + 0x10c]
movsx eax, dl
dec eax
cmp eax, 6
ja case.default.0x40da05
jmp dword [eax*4 + 0x40e5a4]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40da1b
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x40da24
mov edx, dword [esi + 0x28]
add edx, 4
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx - 8]
mov dword [esi + 0x34], edx
jmp 0x40daba
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x40da43
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb0]
mov edx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx - 1]
mov dword [esi + 0x34], eax
jmp 0x40daba
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40da63
mov dword [esi + 0x2c], eax
jmp 0x40da69
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], ecx
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x2c]
add ecx, eax
mov eax, dword [esi + 0x11c]
test eax, 0x8000000
mov dword [esi + 0x34], ecx
je 0x40dadf
mov eax, dword [esi + 0x118]
test ah, 1
je 0x40daba
test ah, 0x10
je 0x40daba
cmp dl, 1
jne 0x40daba
add ecx, 0xfffffffe
mov dword [esi + 0x34], ecx
jmp 0x40daba
push 0x4b7
push str.E:_forrtl_build_for_wseq_fmt.c
push 2
push 0xc0000008
call fcn.00410a90
add esp, 0x10
test dword [esi + 0x11c], 0x8000000
je 0x40dadf
mov eax, dword [esi + 0x118]
test ah, 1
je 0x40dadf
test ah, 0x10
je 0x40dadf
cmp byte [esi + 0x10c], 1
je 0x40db15
mov al, byte [esi + 0x10e]
cmp al, 2
jne 0x40dafc
mov al, byte [esi + 0x10c]
cmp al, 7
je 0x40db15
cmp al, 6
je 0x40db15
dec dword [esi + 0x34]
jmp 0x40db15
cmp al, 1
jne 0x40db15
mov al, byte [esi + 0x10c]
cmp al, 7
je 0x40db11
cmp al, 6
je 0x40db11
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], 0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x120]
mov dword [esi + 0xec], 1
and eax, 0xfffdffff
mov dword [esi + 0x120], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40db63
mov eax, dword [esi + 0x7c]
mov byte [eax + 0x1e], 1
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x3c], ecx
jmp 0x40d595
mov ecx, dword [ebp - 0x20]
xor edi, edi
mov eax, dword [ecx + 0x38]
mov ebx, dword [ecx + 0x3c]
test eax, eax
jle 0x40dbce
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 0x40dbc6
mov eax, dword [ecx + 0x38]
cmp eax, 0x200
jg 0x40dba2
mov eax, 0x200
mov ecx, dword [esi + 0xb0]
shr ecx, 3
cmp ecx, eax
jle 0x40dbb1
mov eax, ecx
push eax
push esi
call fcn.0040f610
add esp, 8
test eax, eax
jne 0x40e411
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x38]
inc edi
cmp edi, eax
jl 0x40db7d
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
ja 0x40dbda
mov eax, ecx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x120]
or eax, 0x20000
mov dword [esi + 0xe4], 0
mov dword [esi + 0x120], eax
jmp 0x40d595
cmp dword [ebp - 4], 2
jge 0x40d595
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
cmp al, 1
je 0x40e303
cmp al, 2
je 0x40e3d4
mov edx, dword [ebp - 4]
lea eax, [ebp + 0x10]
push edx
lea ecx, [ebp + 0xc]
push eax
push ecx
call fcn.004178c0
add esp, 0xc
cmp eax, 2
je 0x40e3d4
cmp eax, 1
je 0x40e303
jmp 0x40d595
mov eax, dword [esi + 0x11c]
test eax, 0x8000000
je 0x40dc66
mov edx, dword [esi + 0x7c]
mov byte [edx + 0x1e], 1
mov eax, dword [esi + 0x7c]
mov dword [eax + 0xc], esi
jmp 0x40d595
or al, 4
mov dword [esi + 0x11c], eax
jmp 0x40d595
mov eax, dword [ebp - 4]
mov ecx, 1
cmp eax, ecx
jle 0x40dd38
mov eax, dword [ebp - 0xac]
cmp eax, 8
je 0x40dcbc
cmp eax, 7
je 0x40dcbc
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 0x40dd33
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], 0
dec ecx
mov dword [ebp - 4], ecx
jmp 0x40ddb4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40dce1
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 0x40df14
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40dceb
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xa8]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x40dd13
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 0x40dcf9
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.0040f7c0
add esp, 0xc
dec dword [ebp - 4]
jmp 0x40ddb4
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.00417580
add esp, 0x10
test eax, eax
jne 0x40e501
mov ecx, dword [ebp - 0x14]
mov edx, 2
cmp ecx, edx
je 0x40e3e4
mov edi, 1
cmp ecx, edi
je 0x40e303
mov eax, dword [ebp - 0xac]
cmp eax, 8
je 0x40de1b
cmp eax, 7
je 0x40de1b
cmp eax, 5
je 0x40ddd4
cmp eax, 6
je 0x40ddd4
cmp ecx, 0x1c
jl 0x40dda4
cmp ecx, 0x2c
jle 0x40dda9
cmp ecx, 0x34
jne 0x40ddb1
mov dword [ebp - 4], edx
mov dword [ebp - 8], edi
jmp 0x40ddb4
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x120]
mov dword [esi + 0xe4], 0
or eax, 0x20000
mov dword [esi + 0x120], eax
jmp 0x40df14
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40dde3
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
jmp 0x40ddf7
mov eax, dword [esi + 0x11c]
mov ecx, dword [ebp - 0x18]
and eax, 0x100
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 0x11c]
mov dword [ebp - 4], eax
test ch, 1
je 0x40df14
test eax, eax
jne 0x40ddb4
mov dword [esi + 0xe4], edi
mov dword [ebp - 0x24], edi
jmp 0x40df1b
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40de3b
mov eax, dword [ebp - 0x18]
cdq
idiv edi
test eax, eax
mov dword [ebp - 4], eax
jne 0x40de5e
mov dword [ebp - 0x24], 1
jmp 0x40df1b
mov eax, dword [esi + 0x11c]
test ah, 1
je 0x40de4b
mov eax, dword [ebp - 0x18]
jmp 0x40de28
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
jmp 0x40df1b
cmp ecx, 0x1c
jl 0x40de68
cmp ecx, 0x2c
jle 0x40de6d
cmp ecx, 0x34
jne 0x40de7a
mov eax, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], eax
jmp 0x40de81
mov dword [ebp - 0x28], 0
mov edi, dword [ebp - 0xa8]
xor eax, eax
test edi, edi
jle 0x40deb2
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 0x40de93
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x40ded6
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 0x40deba
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.0040f7c0
mov eax, dword [esi + 0x120]
mov ebx, dword [ebp - 0x20]
add esp, 0xc
or eax, 0x20000
mov dword [esi + 0xe4], 0
mov dword [esi + 0x120], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40df37
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40df2e
mov dword [ebx + 0xc], 2
jmp 0x40d595
inc eax
mov dword [ebx + 0xc], eax
jmp 0x40d595
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx]
and edx, 0xf7ffffff
mov dword [ebx + 0x4c], edx
mov ecx, dword [eax + 0x11c]
test ecx, 0x10000
je 0x40df74
movsx ecx, byte [ebx + 0x48]
mov ecx, dword [ecx*4 + 0x44df40]
test ecx, ecx
je 0x40df74
mov eax, dword [ebp - 0x14]
movsx ecx, byte [ecx + eax]
test ecx, ecx
je 0x40df77
mov eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x40df77
mov eax, dword [ebp - 0x14]
movsx ecx, byte [ebx + 0x48]
add ecx, 0xffffffed
cmp ecx, 0x20
ja case.0x40df8f.30
xor edx, edx
mov dl, byte [ecx + 0x40e5f0]
jmp dword [edx*4 + 0x40e5c0]
mov eax, dword [ebp - 0x10]
jmp 0x40e122
cmp eax, 5
jl 0x40e3f5
cmp eax, 0x11
jg 0x40e3f5
mov dword [ebx + 0x38], 2
jmp case.0x40df8f.30
cmp eax, 0x19
jl 0x40e3f5
cmp eax, 0x34
jg 0x40e3f5
lea eax, [eax + eax*2 - 0x4b]
movsx edx, byte [eax + 0x44de6c]
mov dword [ebx + 0x38], edx
movsx cx, byte [eax + 0x44de6d]
mov word [ebx + 0x40], cx
movsx dx, byte [eax + 0x44de6e]
mov word [ebx + 0x42], dx
jmp case.0x40df8f.30
cmp eax, 0x19
jl case.0x40df8f.22
cmp eax, 0x34
jg case.0x40df8f.22
lea eax, [eax + eax*2 - 0x4b]
movsx ecx, byte [eax + 0x44de6c]
mov dword [ebx + 0x38], ecx
movsx dx, byte [eax + 0x44de6d]
mov word [ebx + 0x40], dx
movsx ax, byte [eax + 0x44de6e]
mov word [ebx + 0x42], ax
jmp case.0x40df8f.30
cmp eax, 5
jl 0x40e3f5
cmp eax, 0x11
jg 0x40e3f5
movsx ecx, byte [eax + 0x44dd97]
mov dword [ebx + 0x38], ecx
jmp case.0x40df8f.30
movsx eax, word [eax*2 + 0x44ddec]
cmp eax, 0xffffffff
mov dword [ebx + 0x38], eax
jne case.0x40df8f.30
mov edx, dword [ebp - 0x10]
lea eax, [edx*4]
cmp eax, 0x11
jge 0x40e122
mov eax, 0x11
jmp 0x40e122
movsx eax, byte [eax + 0x44ddac]
cmp eax, 0xffffffff
mov dword [ebx + 0x38], eax
jne case.0x40df8f.30
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
cmp eax, 7
jge 0x40e122
mov eax, 7
jmp 0x40e122
mov eax, dword [ebx + 0x38]
test eax, eax
jne case.0x40df8f.30
mov eax, dword [ebx + 0x50]
or al, 2
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 0x44dd97]
mov dword [ebx + 0x38], ecx
jmp case.0x40df8f.30
mov eax, dword [ebx + 0x38]
test eax, eax
jne case.0x40df8f.30
mov eax, dword [ebx + 0x50]
or al, 2
mov dword [ebx + 0x50], eax
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx + 0x44ddac]
jmp 0x40e122
mov eax, dword [ebx + 0x38]
test eax, eax
jne case.0x40df8f.30
mov eax, dword [ebx + 0x50]
or al, 2
mov dword [ebx + 0x50], eax
mov ecx, dword [ebp - 0x14]
movsx edx, word [ecx*2 + 0x44ddec]
mov dword [ebx + 0x38], edx
jmp case.0x40df8f.30
mov eax, dword [ebx + 0x38]
test eax, eax
jne case.0x40df8f.30
mov edi, dword [ebx + 0x50]
movsx ecx, word [ebx + 0x40]
or edi, 2
mov dword [ebx + 0x50], edi
mov eax, dword [ebp - 0x14]
movsx eax, byte [eax + eax*2 + 0x44de21]
add eax, ecx
mov dword [ebx + 0x38], eax
test byte [ebx + 0x50], 2
je 0x40e1cd
mov eax, dword [ebx + 0x38]
cmp eax, 0x40
ja 0x40e149
lea edi, [ebp - 0x124]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], edi
jmp 0x40e166
lea edx, [ebp - 0xc]
push edx
push 0
push eax
call fcn.004105d0
add esp, 0xc
test eax, eax
jne 0x40e501
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.00416080
add esp, 0xc
test eax, eax
je 0x40e1af
cmp eax, 0x8000003f
jne 0x40e501
test dword [esi + 0x11c], 0x100000
jne 0x40e1af
mov dword [ebx + 0x10], 0x8000003f
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x40e1cd
mov edx, dword [ebp - 0xc]
cmp byte [edx], 0x20
jne 0x40e1cd
mov ecx, edx
inc ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x38]
dec eax
mov dword [ebx + 0x38], eax
jne 0x40e1b6
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 0x40e20b
cmp eax, 0x200
jg 0x40e1ea
mov eax, 0x200
mov ecx, dword [esi + 0xb0]
shr ecx, 3
cmp ecx, eax
jle 0x40e1f9
mov eax, ecx
push eax
push esi
call fcn.0040f610
add esp, 8
test eax, eax
jne 0x40e411
test byte [ebx + 0x50], 2
je 0x40e25a
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x40e23c
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 0x40e218
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 0x40e298
push eax
call fcn.00410640
add esp, 4
jmp 0x40e298
mov edx, dword [esi + 0x2c]
lea eax, [ebp - 0x1c]
push edx
push ebx
push eax
call fcn.00416080
add esp, 0xc
test eax, eax
je 0x40e28d
cmp eax, 0x8000003f
jne 0x40e501
test dword [esi + 0x11c], 0x100000
jne 0x40e28d
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 0x40e2a4
mov eax, ecx
mov dword [esi + 0x3c], eax
jmp 0x40d595
mov eax, dword [esi + 0x11c]
test ah, 1
je 0x40e380
test dword [ebx + 0x4c], 0x80000000
je 0x40e380
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.00417950
add esp, 0x14
test eax, eax
je 0x40e380
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 2
jne 0x40e303
mov ecx, dword [ebp - 4]
mov eax, 2
cmp ecx, eax
jl 0x40e374
mov eax, dword [esi + 0x7c]
xor edi, edi
cmp eax, edi
je 0x40e31b
xor edx, edx
mov dl, byte [eax + 0x1e]
mov eax, edx
cmp eax, edi
jne 0x40e4c4
cmp dword [esi + 0xe4], edi
jne 0x40e338
cmp dword [ebp - 0x24], edi
je 0x40e439
cmp dword [esi + 0xec], edi
je 0x40e439
mov eax, dword [esi + 0x120]
mov dword [esi + 0xe4], edi
test eax, 0x20000
je 0x40e42d
and eax, 0xfffdffff
mov dword [esi + 0x120], eax
jmp 0x40e439
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 0x40e377
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.00410ac0
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.00410ac0
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.00410ac0
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 0x40e373
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.00410ac0
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.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xec], edi
jne 0x40e4c4
test byte [esi + 0x11c], 4
je 0x40e473
cmp byte [esi + 0x10e], 1
jne 0x40e473
mov eax, dword [esi + 0x28]
mov cl, byte [eax + 5]
cmp cl, 0x20
jne 0x40e45c
mov byte [eax + 5], 0x24
jmp 0x40e465
cmp cl, 0x2b
jne 0x40e465
mov byte [eax + 5], 0
mov eax, dword [esi + 0x11c]
and al, 0xfb
mov dword [esi + 0x11c], eax
push esi
call fcn.00414cb0
add esp, 4
cmp eax, edi
je 0x40e494
push esi
push eax
push eax
push 1
call fcn.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x90]
mov ecx, dword [esi + 0x11c]
mov eax, dword [esi + 0x120]
inc edx
and ecx, 0xfff7ffff
and eax, 0xfffdffff
mov dword [esi + 0x90], edx
mov dword [esi + 0x11c], ecx
mov dword [esi + 0x120], eax
mov eax, dword [ebx + 0x4c]
test eax, 0x2000000
je 0x40e4fa
and eax, 0xfdffffff
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 4]
push eax
call fcn.00410640
add esp, 4
cmp eax, edi
je 0x40e4fa
push esi
push eax
push eax
push 1
call fcn.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x40e515
push esi
push eax
push eax
push 1
call fcn.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x118]
mov ebx, dword [esi + 0x11c]
mov ecx, dword [esi + 0xb8]
and eax, 0xfdc6ffff
and ebx, 0xfffffddf
push ecx
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], ebx
call fcn.00414360
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