Function at 0x540790
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax + 4]
xor edx, edx
mov edi, 1
cmp ebx, edx
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xc], edx
jne 0x5407c2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x48]
cmp eax, edx
mov dword [ebp - 0x24], esi
jle 0x54104d
mov eax, dword [esi + 0xc]
cmp eax, 1
jle 0x540883
lea edi, [eax - 1]
mov eax, dword [esi + 0x4c]
test eax, 0x10000000
mov dword [esi + 0xc], edi
je 0x5408d2
test eax, 0x20000000
je 0x5408d2
mov ecx, dword [ebp + 0xc]
movsx ecx, byte [ecx]
cmp ecx, 2
jne 0x540862
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x540862
cmp dword [ebp - 4], 1
jg 0x540862
or eax, 0x20000000
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x4c]
and eax, 0xbfffffff
push ebx
mov dword [esi + 0x4c], eax
call fcn.00554c60
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x5410e2
mov eax, dword [esi + 0x4c]
mov dword [esi + 0xc], edi
test eax, 0x10000000
je 0x540858
test eax, 0x20000000
jne 0x54114d
or eax, 0x20000000
mov dword [esi + 0x4c], eax
jmp 0x5408d2
and eax, 0xdfffffff
cmp ecx, 1
mov dword [esi + 0x4c], eax
jne 0x540821
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x540821
cmp dword [ebp - 4], 1
jg 0x540821
or eax, 0x40000000
jmp 0x540829
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
cmp ecx, 2
jne 0x540904
test edx, edx
jne 0x540904
cmp edi, 1
jg 0x540904
or dword [esi + 0x4c], 0x20000000
mov eax, dword [esi + 0x4c]
and eax, 0xbfffffff
push ebx
mov dword [esi + 0x4c], eax
call fcn.00554c60
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x5410e2
mov eax, dword [esi + 0x4c]
test eax, 0x10000000
je 0x5408d2
test eax, 0x20000000
jne 0x54115a
movsx eax, byte [esi + 0x48]
add eax, 0xfffffffe
cmp eax, 0x1a
ja case.0x5408ea.7
xor ecx, ecx
mov cl, byte [eax + 0x541454]
jmp dword [ecx*4 + 0x54143c]
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0xb8]
add edx, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x34], edx
jmp 0x540976
mov eax, dword [esi + 0x4c]
and eax, 0xdfffffff
cmp ecx, 1
mov dword [esi + 0x4c], eax
jne 0x54089e
test edx, edx
jne 0x54089e
cmp edi, ecx
jg 0x54089e
or eax, 0x40000000
jmp 0x5408a6
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
cmp al, 1
je 0x540941
cmp al, 2
je 0x54093d
test dword [esi + 0x4c], 0x200000
je 0x540ff9
cmp al, 1
jne 0x540953
mov edx, dword [ebp - 4]
mov ecx, 2
cmp edx, ecx
jl 0x54104d
jmp 0x540958
mov ecx, 2
cmp al, 2
jne 0x540965
cmp dword [ebp - 4], ecx
jl 0x54124e
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0xb8]
add ecx, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x34], ecx
mov ecx, dword [ebx + 0x98]
mov edi, dword [ebx + 0x2c]
dec ecx
mov dword [ebx + 0x38], edi
mov eax, ecx
mov dword [ebx + 0x98], ecx
cmp eax, 1
jl 0x54116e
mov ecx, dword [ebx + 0xb4]
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
jmp case.0x5408ea.3
mov ecx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
xor eax, eax
test ecx, ecx
jle 0x5409e0
mov ecx, dword [ebx + 0x2c]
mov dl, byte [eax + edi]
mov byte [ecx], dl
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
inc ecx
cmp ecx, edx
mov dword [ebx + 0x2c], ecx
ja 0x54125a
mov ecx, dword [esi + 0x38]
inc eax
cmp eax, ecx
jl 0x5409be
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x3c]
cmp eax, ecx
ja 0x5409ec
mov eax, ecx
mov dword [ebx + 0x3c], eax
jmp case.0x5408ea.3
cmp dword [ebp - 4], 2
jge case.0x5408ea.3
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
cmp al, 1
je 0x54104d
cmp al, 2
je 0x54126a
mov ecx, dword [ebp - 4]
lea edx, [ebp + 0x10]
push ecx
lea eax, [ebp + 0xc]
push edx
push eax
call fcn.0054f530
add esp, 0xc
cmp eax, 2
je 0x54126a
cmp eax, 1
je 0x54104d
jmp case.0x5408ea.3
mov eax, dword [ebp - 4]
mov edi, 1
cmp eax, edi
jle 0x540b06
mov eax, dword [ebp - 0xac]
cmp eax, 8
je 0x540a87
cmp eax, 7
je 0x540a87
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
add edx, ecx
test eax, eax
mov dword [ebp - 0x20], edx
je 0x540afe
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], 0
dec eax
mov dword [ebp - 4], eax
jmp 0x540ca4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x540aac
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add ecx, edx
dec eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x540ca4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x540ab6
mov dword [ebp - 0xc], edi
mov edx, dword [ebp - 0xa8]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x540ade
mov edi, dword [ebp + eax*4 - 0x4c]
sub edi, dword [ebp + eax*4 - 0xe4]
imul edi, dword [ebp + eax*4 - 0xc8]
add ecx, edi
inc eax
cmp eax, edx
jl 0x540ac4
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 - 0x20], eax
call fcn.00552ac0
add esp, 0xc
dec dword [ebp - 4]
jmp 0x540ca4
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp + 0x10]
push ecx
lea eax, [ebp + 0xc]
push edx
push eax
call fcn.0054f1f0
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x54127a
mov ecx, dword [ebp - 0x18]
mov edx, 2
cmp ecx, edx
je 0x5412eb
cmp ecx, edi
je 0x54104d
mov eax, dword [ebp - 0xac]
cmp eax, 8
je 0x540bc5
cmp eax, 7
je 0x540bc5
cmp eax, 5
je 0x540b80
cmp eax, 6
je 0x540b80
cmp ecx, 0x1c
jl 0x540b68
cmp ecx, 0x2c
jle 0x540b6d
cmp ecx, 0x34
jne 0x540b78
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edi
jmp 0x540ca4
mov dword [ebp - 4], edi
jmp 0x540ca4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x540b8f
mov eax, dword [ebp - 0x1c]
cdq
idiv ecx
jmp 0x540ba3
mov eax, dword [ebx + 0x12c]
mov ecx, dword [ebp - 0x1c]
and eax, 0x100
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0x12c]
mov dword [ebp - 4], eax
test ch, 1
je 0x540ca4
test eax, eax
jne 0x540ca4
mov dword [ebp - 0x28], edi
jmp 0x540cab
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x540be5
mov eax, dword [ebp - 0x1c]
cdq
idiv edi
test eax, eax
mov dword [ebp - 4], eax
jne 0x540c08
mov dword [ebp - 0x28], 1
jmp 0x540cab
mov eax, dword [ebx + 0x12c]
test ah, 1
je 0x540bf5
mov eax, dword [ebp - 0x1c]
jmp 0x540bd2
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
jmp 0x540cab
cmp ecx, 0x1c
jl 0x540c12
cmp ecx, 0x2c
jle 0x540c17
cmp ecx, 0x34
jne 0x540c24
mov eax, 1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], eax
jmp 0x540c2b
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0xa8]
xor eax, eax
test edx, edx
jle 0x540c62
lea ecx, [ebp - 0x98]
mov edx, dword [ecx - 4]
mov edi, dword [ecx]
mov dword [ebp + eax*4 - 0xe4], edx
mov dword [ebp + eax*4 - 0xc8], edi
mov dword [ebp + eax*4 - 0x4c], edx
mov edx, dword [ebp - 0xa8]
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x540c3d
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x540c84
mov edi, dword [ebp + eax*4 - 0x4c]
sub edi, dword [ebp + eax*4 - 0xe4]
imul edi, dword [ebp + eax*4 - 0xc8]
add ecx, edi
inc eax
cmp eax, edx
jl 0x540c6a
mov edx, dword [ebp - 0xa4]
lea eax, [ebp - 0xac]
add edx, ecx
lea ecx, [ebp - 0x4c]
push eax
push ecx
push 0
mov dword [ebp - 0x20], edx
call fcn.00552ac0
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x540cc7
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x540cbe
mov dword [esi + 0xc], 2
jmp case.0x5408ea.3
inc eax
mov dword [esi + 0xc], eax
jmp case.0x5408ea.3
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi]
and ecx, 0xf7ffffff
mov dword [ebp - 8], 0
mov dword [esi + 0x4c], ecx
mov eax, dword [edx + 0x12c]
test eax, 0x10000
je 0x540d0a
movsx eax, byte [esi + 0x48]
mov ecx, dword [eax*4 + 0x57dbb8]
test ecx, ecx
je 0x540d0a
mov eax, dword [ebp - 0x18]
movsx ecx, byte [ecx + eax]
test ecx, ecx
je 0x540d0d
mov eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x540d0d
mov eax, dword [ebp - 0x18]
movsx ecx, byte [esi + 0x48]
lea edi, [ecx - 0x13]
cmp edi, 0x20
ja case.0x540d25.30
xor edx, edx
mov dl, byte [edi + 0x5414a0]
jmp dword [edx*4 + 0x541470]
mov eax, dword [ebp - 0x14]
jmp 0x540e75
cmp eax, 5
jl 0x540d4d
cmp eax, 0x11
jg 0x540d4d
movsx edx, byte [eax + 0x57d97f]
mov dword [esi + 0x38], edx
jmp case.0x540d25.30
mov dword [ebp - 8], 0xc000003d
jmp case.0x540d25.30
cmp eax, 5
jl 0x540d4d
cmp eax, 0x11
jg 0x540d4d
mov dword [esi + 0x38], 2
jmp case.0x540d25.30
cmp eax, 0x19
jl 0x540d4d
cmp eax, 0x34
jg 0x540d4d
jmp 0x540d85
cmp eax, 0x19
jl case.0x540d25.22
cmp eax, 0x34
jg case.0x540d25.22
lea eax, [eax*8 - 0xc8]
movsx edx, word [eax + 0x57da58]
mov dword [esi + 0x38], edx
mov dx, word [eax + 0x57da5c]
mov word [esi + 0x40], dx
mov ax, word [eax + 0x57da5e]
mov word [esi + 0x42], ax
jmp case.0x540d25.30
movsx eax, word [eax*2 + 0x57d9d4]
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
jne case.0x540d25.30
mov eax, dword [ebp - 0x14]
shl eax, 2
cmp eax, 0x11
jge 0x540e75
mov eax, 0x11
jmp 0x540e75
movsx eax, byte [eax + 0x57d994]
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
jne case.0x540d25.30
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
cmp eax, 7
jge 0x540e75
mov eax, 7
jmp 0x540e75
mov eax, dword [esi + 0x38]
test eax, eax
jne case.0x540d25.30
mov eax, dword [esi + 0x50]
or al, 2
mov dword [esi + 0x50], eax
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx + 0x57d97f]
jmp 0x540e75
mov eax, dword [esi + 0x38]
test eax, eax
jne case.0x540d25.30
mov eax, dword [esi + 0x50]
or al, 2
mov dword [esi + 0x50], eax
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx + 0x57d994]
jmp 0x540e75
mov eax, dword [esi + 0x38]
test eax, eax
jne case.0x540d25.30
mov eax, dword [esi + 0x50]
or al, 2
mov dword [esi + 0x50], eax
mov edx, dword [ebp - 0x18]
movsx eax, word [edx*2 + 0x57d9d4]
jmp 0x540e75
mov eax, dword [esi + 0x38]
test eax, eax
jne case.0x540d25.30
mov eax, dword [esi + 0x50]
or al, 2
mov dword [esi + 0x50], eax
mov edx, dword [ebp - 0x18]
movsx eax, word [edx*8 + 0x57d992]
movsx edx, word [esi + 0x40]
add eax, edx
mov dword [esi + 0x38], eax
mov eax, ecx
sub eax, 0x28
je 0x540e89
sub eax, 2
je 0x540e89
sub eax, 3
jne 0x540e96
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x38]
cmp ecx, eax
jge 0x540e96
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x541300
test byte [esi + 0x50], 2
je 0x540f49
mov eax, dword [esi + 0x38]
cmp eax, 0x40
ja 0x540ec5
lea edi, [ebp - 0x124]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], edi
jmp 0x540ee2
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
call fcn.00540120
add esp, 0xc
test eax, eax
jne 0x5410ce
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x30], edi
mov ecx, dword [esi + 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 - 0x10]
lea ecx, [ebp - 0x20]
push eax
push esi
push ecx
call fcn.005513d0
add esp, 0xc
test eax, eax
je 0x540f2b
cmp eax, 0x8000003f
jne 0x5410ce
test dword [ebx + 0x12c], 0x100000
jne 0x540f2b
mov dword [esi + 0x10], 0x8000003f
mov eax, dword [esi + 0x38]
test eax, eax
je 0x540f49
mov edx, dword [ebp - 0x10]
cmp byte [edx], 0x20
jne 0x540f49
mov ecx, edx
inc ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
jne 0x540f32
mov ecx, dword [esi + 0x38]
mov eax, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x34]
lea edx, [ecx + eax]
cmp edx, edi
ja 0x54136b
test byte [esi + 0x50], 2
je 0x540fa9
test ecx, ecx
je 0x540f8b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x2c]
mov dl, byte [ecx]
mov byte [eax], dl
mov esi, dword [ebx + 0x2c]
mov eax, dword [ebp - 0x24]
inc esi
mov dword [ebx + 0x2c], esi
mov edx, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 0x38]
dec ecx
mov dword [eax + 0x38], ecx
jne 0x540f67
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov edx, dword [esi + 0x50]
and edx, 0xfffffffd
test eax, eax
mov dword [esi + 0x50], edx
je case.0x5408ea.3
push eax
call fcn.00540190
add esp, 4
jmp case.0x5408ea.3
push eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.005513d0
add esp, 0xc
test eax, eax
je 0x540fd9
cmp eax, 0x8000003f
jne 0x5410ce
test dword [ebx + 0x12c], 0x100000
jne 0x540fd9
mov dword [esi + 0x10], 0x8000003f
mov ecx, dword [esi + 0x38]
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x98]
test eax, eax
jle 0x54104d
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
jmp 0x5407d6
mov eax, dword [ebx + 0x12c]
test ah, 1
je 0x5411de
test dword [esi + 0x4c], 0x80000000
je 0x5411de
mov edi, dword [ebp - 4]
lea edx, [ebp - 0xac]
push edi
lea eax, [ebp - 0x20]
push edx
lea ecx, [ebp + 0x10]
push eax
lea edx, [ebp + 0xc]
push ecx
push edx
call fcn.0054f5c0
add esp, 0x14
test eax, eax
je 0x5411de
mov eax, dword [ebp + 0xc]
cmp byte [eax], 2
jne 0x54104d
cmp edi, 2
jl 0x54126a
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x5410a4
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebx + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x28]
push eax
call fcn.00540190
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
sub eax, ecx
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebx + 0x38]
add esp, 4
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], esi
mov esi, dword [ebp - 0x24]
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
mov eax, dword [esi + 0x4c]
test eax, 0x2000000
je 0x5413db
mov ecx, dword [esi + 4]
and eax, 0xfdffffff
push ecx
mov dword [esi + 0x4c], eax
call fcn.00540190
add esp, 4
test eax, eax
je 0x5413db
push ebx
push eax
push eax
push 1
call fcn.00547a70
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x541139
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebx + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x28]
push eax
call fcn.00540190
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
sub eax, ecx
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebx + 0x38]
add esp, 4
sub esi, eax
sub edx, eax
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
push ebx
push eax
push eax
push 1
call fcn.00547a70
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc edi
xor eax, eax
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x541165
inc eax
mov dword [esi + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x5411c2
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebx + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x28]
push eax
call fcn.00540190
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
sub eax, ecx
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebx + 0x38]
add esp, 4
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
push ebx
push 0xc000001b
push 0xc000001b
push 1
call fcn.00547a70
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x541232
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebx + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x28]
push eax
call fcn.00540190
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
sub eax, ecx
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebx + 0x38]
add esp, 4
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
push ebx
push 0xc000003c
push 0xc000003c
push 1
call fcn.00547a70
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x5413bf
jmp 0x541372
mov dword [esi + 0xc], 2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x6c]
test edx, edx
je 0x5412d8
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebx + 0x28]
mov edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x28]
push eax
call fcn.00540190
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
sub eax, ecx
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebx + 0x38]
add esp, 4
sub esi, eax
sub edx, eax
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
mov edi, 1
push ebx
push eax
push eax
push edi
call fcn.00547a70
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x541161
mov dword [esi + 0xc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x541354
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebx + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x28]
push eax
call fcn.00540190
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
sub eax, ecx
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebx + 0x38]
add esp, 4
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
mov eax, dword [ebp - 8]
push ebx
push eax
push eax
push 1
call fcn.00547a70
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x5413bf
mov ecx, dword [ebx + 0x88]
mov esi, dword [ebx + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x28]
push eax
call fcn.00540190
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
sub eax, ecx
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebx + 0x38]
add esp, 4
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
push ebx
push 0xc0000042
push 0xc0000042
push 1
call fcn.00547a70
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x10]
test esi, esi
je 0x5413f6
push ebx
push esi
push esi
push 1
call fcn.00547a70
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x128]
mov edi, dword [ebx + 0x12c]
mov edx, dword [ebx + 0xbc]
and eax, 0xfdc6ffff
and edi, 0xfffffddf
push edx
mov dword [ebx + 0x128], eax
mov dword [ebx + 0x12c], edi
call fcn.0054b500
mov ecx, dword [ebp + 8]
add esp, 4
pop edi
pop esi
mov dword [ecx + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret