Function at 0x59f1a0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [ebp + 8]
push ebx
xor ecx, ecx
mov edx, 1
mov ebx, dword [eax + 4]
push esi
cmp ebx, ecx
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], ecx
jne 0x59f1d5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x94]
mov esi, dword [ebx + 0x48]
cmp eax, ecx
mov dword [ebp - 0x28], esi
jle 0x59fd34
mov eax, dword [esi + 0xc]
cmp eax, 1
jle 0x59f297
lea edi, [eax - 1]
mov eax, dword [esi + 0x4c]
test eax, 0x10000000
mov dword [esi + 0xc], edi
je 0x59f30c
test eax, 0x20000000
je 0x59f30c
mov ecx, dword [ebp + 0xc]
movsx ecx, byte [ecx]
cmp ecx, 2
jne 0x59f233
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x59f233
cmp dword [ebp - 4], 1
jg 0x59f233
or eax, 0x20000000
jmp 0x59f238
and eax, 0xdfffffff
cmp ecx, 1
mov dword [esi + 0x4c], eax
jne 0x59f256
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x59f256
cmp dword [ebp - 4], ecx
jg 0x59f256
mov eax, dword [esi + 0x4c]
or eax, 0x40000000
jmp 0x59f25e
mov eax, dword [esi + 0x4c]
and eax, 0xbfffffff
push ebx
mov dword [esi + 0x4c], eax
call fcn.005aa130
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x59faa7
mov eax, dword [esi + 0x4c]
mov dword [esi + 0xc], edi
test eax, 0x10000000
je 0x59f28d
test eax, 0x20000000
jne 0x59fab7
or eax, 0x20000000
mov dword [esi + 0x4c], eax
jmp 0x59f30c
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax]
cmp eax, 2
jne 0x59f2b6
test ecx, ecx
jne 0x59f2b6
cmp edx, 1
jg 0x59f2b6
mov edi, dword [esi + 0x4c]
or edi, 0x20000000
jmp 0x59f2bf
mov edi, dword [esi + 0x4c]
and edi, 0xdfffffff
cmp eax, 1
mov dword [esi + 0x4c], edi
jne 0x59f2d8
test ecx, ecx
jne 0x59f2d8
cmp edx, eax
jg 0x59f2d8
mov eax, edi
or eax, 0x40000000
jmp 0x59f2e0
mov eax, dword [esi + 0x4c]
and eax, 0xbfffffff
push ebx
mov dword [esi + 0x4c], eax
call fcn.005aa130
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x59fbcc
mov eax, dword [esi + 0x4c]
test eax, 0x10000000
je 0x59f30c
test eax, 0x20000000
jne 0x59fac4
movsx eax, byte [esi + 0x48]
add eax, 0xfffffffe
cmp eax, 0x1a
ja case.0x59f324.7
xor ecx, ecx
mov cl, byte [eax + 0x59fe38]
jmp dword [ecx*4 + 0x59fe20]
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0xb4]
add edx, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x34], edx
jmp 0x59f3f7
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
cmp al, 1
je 0x59f3c0
cmp al, 2
je 0x59f3bc
mov ecx, dword [esi + 0x4c]
test ecx, 0x200000
jne 0x59f3bc
mov eax, dword [ebx + 0x11c]
test ah, 1
je 0x59fadc
test ecx, 0x80000000
je 0x59fadc
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0xb0]
push edi
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp + 0x10]
push edx
lea ecx, [ebp + 0xc]
push eax
push ecx
call fcn.005a4150
add esp, 0x14
test eax, eax
je 0x59fadc
mov edx, dword [ebp + 0xc]
cmp byte [edx], 2
jne 0x59f4c2
cmp edi, 2
jl 0x59fbbc
mov dword [ebp - 0x24], 1
jmp 0x59f746
cmp al, 1
jne 0x59f3d2
cmp dword [ebp - 4], 2
jge 0x59f3d2
mov dword [ebp - 0x24], 1
jmp 0x59f746
cmp al, 2
jne 0x59f3e6
mov ecx, dword [ebp - 4]
mov eax, 2
cmp ecx, eax
jl 0x59fc4d
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0xb4]
add ecx, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x34], ecx
mov ecx, dword [ebx + 0x94]
mov edi, dword [ebx + 0x2c]
dec ecx
mov dword [ebx + 0x38], edi
mov eax, ecx
mov dword [ebx + 0x94], ecx
cmp eax, 1
jl 0x59fb4c
mov ecx, dword [ebx + 0xb0]
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.0x59f324.3
mov ecx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
xor eax, eax
test ecx, ecx
jle 0x59f461
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 0x59fcc4
mov ecx, dword [esi + 0x38]
inc eax
cmp eax, ecx
jl 0x59f43f
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x3c]
cmp eax, ecx
ja 0x59f46d
mov eax, ecx
mov dword [ebx + 0x3c], eax
jmp case.0x59f324.3
cmp dword [ebp - 4], 2
jge case.0x59f324.3
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
cmp al, 1
jne 0x59f494
mov dword [ebp - 0x24], 1
jmp 0x59f746
cmp al, 2
je 0x59fbbc
mov ecx, dword [ebp - 4]
lea edx, [ebp + 0x10]
push ecx
lea eax, [ebp + 0xc]
push edx
push eax
call fcn.005a40c0
add esp, 0xc
cmp eax, 2
je 0x59fbbc
cmp eax, 1
jne case.0x59f324.3
mov dword [ebp - 0x24], 1
jmp 0x59f746
mov eax, dword [ebp - 4]
mov ecx, 1
cmp eax, ecx
jle 0x59f59b
mov eax, dword [ebp - 0xb0]
cmp eax, 8
je 0x59f517
cmp eax, 7
je 0x59f517
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 0x59f593
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], 0
dec eax
mov dword [ebp - 4], eax
jmp 0x59f746
mov eax, dword [ebp - 0xc]
xor edx, edx
cmp eax, edx
je 0x59f53a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
jmp 0x59f746
cmp dword [ebp - 0x30], edx
je 0x59f542
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xac]
xor eax, eax
cmp ecx, edx
jle 0x59f573
lea ecx, [ebp - 0xe8]
mov edi, dword [ebp + eax*4 - 0x50]
add ecx, 4
sub edi, dword [ebp + eax*4 - 0xcc]
imul edi, dword [ecx - 4]
add edx, edi
mov edi, dword [ebp - 0xac]
inc eax
cmp eax, edi
jl 0x59f554
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x50]
add edx, ecx
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0xb0]
push edx
push eax
push 0
call fcn.005aab10
add esp, 0xc
dec dword [ebp - 4]
jmp 0x59f746
lea ecx, [ebp - 0xb0]
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp + 0x10]
push edx
lea ecx, [ebp + 0xc]
push eax
push ecx
call fcn.005a3d90
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x59fbcc
mov edi, dword [ebp - 0x18]
mov ecx, 2
cmp edi, ecx
je 0x59fc3b
mov edx, 1
cmp edi, edx
jne 0x59f5e2
mov dword [ebp - 0x24], edx
jmp 0x59f746
mov eax, dword [ebp - 0xb0]
cmp eax, 8
je 0x59f662
cmp eax, 7
je 0x59f662
cmp eax, 5
je 0x59f619
cmp eax, 6
je 0x59f619
cmp edi, 0x1c
jl 0x59f611
cmp edi, 0x2c
jg 0x59f611
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
jmp 0x59f746
mov dword [ebp - 4], edx
jmp 0x59f746
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x59f628
mov eax, dword [ebp - 0x1c]
cdq
idiv ecx
jmp 0x59f63c
mov eax, dword [ebx + 0x11c]
mov ecx, dword [ebp - 0x1c]
and eax, 0x100
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0x11c]
mov dword [ebp - 4], eax
test ch, 1
je 0x59f746
test eax, eax
jne 0x59f746
mov dword [ebp - 0x2c], 1
jmp 0x59f746
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x59f679
mov eax, dword [ebp - 0x1c]
cdq
idiv ecx
mov edx, 1
mov dword [ebp - 4], eax
jmp 0x59f690
mov eax, dword [ebx + 0x11c]
mov ecx, dword [ebp - 0x1c]
and eax, 0x100
neg eax
sbb eax, eax
and eax, ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x59f69c
mov dword [ebp - 0x2c], edx
jmp 0x59f746
cmp edi, 0x1c
jl 0x59f6ae
cmp edi, 0x2c
jg 0x59f6ae
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], edx
jmp 0x59f6b5
mov dword [ebp - 0x30], 0
mov edi, dword [ebp - 0xac]
xor eax, eax
test edi, edi
jle 0x59f6f9
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 8], edx
mov edi, dword [ecx]
mov edx, dword [ecx - 4]
mov dword [ebp + eax*4 - 0xe8], edi
mov edi, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xcc], edx
inc eax
mov dword [edi], edx
add edi, 4
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xac]
add ecx, 0xc
cmp eax, edi
jl 0x59f6cd
xor eax, eax
xor edx, edx
test edi, edi
jle 0x59f726
lea ecx, [ebp - 0xe8]
mov edi, dword [ebp + eax*4 - 0x50]
add ecx, 4
sub edi, dword [ebp + eax*4 - 0xcc]
imul edi, dword [ecx - 4]
add edx, edi
mov edi, dword [ebp - 0xac]
inc eax
cmp eax, edi
jl 0x59f707
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xb0]
add edx, eax
push ecx
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x50]
push edx
push 0
call fcn.005aab10
add esp, 0xc
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x59fd34
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x59f774
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x59f76b
mov dword [esi + 0xc], 2
jmp case.0x59f324.3
inc eax
mov dword [esi + 0xc], eax
jmp case.0x59f324.3
mov edi, dword [esi + 0x4c]
mov eax, dword [esi]
and edi, 0xf7ffffff
xor edx, edx
mov dword [esi + 0x4c], edi
mov ecx, dword [eax + 0x11c]
test ecx, 0x10000
mov dword [ebp - 8], edx
je 0x59f7b6
movsx ecx, byte [esi + 0x48]
mov ecx, dword [ecx*4 + 0x5dcc50]
test ecx, ecx
je 0x59f7b6
mov eax, dword [ebp - 0x18]
movsx ecx, byte [ecx + eax]
test ecx, ecx
je 0x59f7b9
mov eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x59f7b9
mov eax, dword [ebp - 0x18]
movsx ecx, byte [esi + 0x48]
lea edi, [ecx - 0x13]
cmp edi, 0x20
ja case.0x59f7d1.34
xor ecx, ecx
mov cl, byte [edi + 0x59fe94]
jmp dword [ecx*4 + 0x59fe54]
mov eax, dword [ebp - 0x14]
jmp 0x59f964
cmp eax, 5
jl 0x59f873
cmp eax, 0x11
jg 0x59f873
movsx ecx, byte [eax + 0x5dcaa3]
mov dword [esi + 0x38], ecx
jmp case.0x59f7d1.34
cmp eax, 5
jl 0x59f873
cmp eax, 0x11
jg 0x59f873
mov dword [esi + 0x38], 2
jmp case.0x59f7d1.34
cmp eax, 0x19
jl 0x59f873
cmp eax, 0x33
jg 0x59f873
jmp 0x59f82d
cmp eax, 0x19
jl 0x59f85a
cmp eax, 0x33
jg 0x59f85a
add eax, 0xffffffe7
lea eax, [eax + eax*2]
movsx ecx, byte [eax + 0x5dcb78]
mov dword [esi + 0x38], ecx
movsx cx, byte [eax + 0x5dcb79]
mov word [esi + 0x40], cx
movsx ax, byte [eax + 0x5dcb7a]
mov word [esi + 0x42], ax
jmp case.0x59f7d1.34
cmp eax, 5
jl 0x59f873
cmp eax, 0x11
jg 0x59f873
movsx ecx, byte [eax + 0x5dcaa3]
mov dword [esi + 0x38], ecx
jmp case.0x59f7d1.34
mov edx, 0xc000003d
mov dword [ebp - 8], edx
jmp case.0x59f7d1.34
movsx eax, word [eax*2 + 0x5dcaf8]
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
jne case.0x59f7d1.34
mov eax, dword [ebp - 0x14]
shl eax, 2
cmp eax, 0x11
jge 0x59f964
mov eax, 0x11
jmp 0x59f964
movsx eax, byte [eax + 0x5dcab8]
cmp eax, 0xffffffff
mov dword [esi + 0x38], eax
jne case.0x59f7d1.34
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
cmp eax, 7
jge 0x59f964
mov eax, 7
jmp 0x59f964
mov eax, dword [esi + 0x38]
test eax, eax
jne case.0x59f7d1.34
mov eax, dword [esi + 0x50]
or al, 2
mov dword [esi + 0x50], eax
mov ecx, dword [ebp - 0x18]
movsx eax, byte [ecx + 0x5dcaa3]
mov dword [esi + 0x38], eax
mov word [esi + 0x40], 1
jmp case.0x59f7d1.34
mov eax, dword [esi + 0x38]
test eax, eax
jne case.0x59f7d1.34
mov eax, dword [esi + 0x50]
or al, 2
mov dword [esi + 0x50], eax
mov ecx, dword [ebp - 0x18]
movsx eax, byte [ecx + 0x5dcab8]
mov dword [esi + 0x38], eax
mov word [esi + 0x40], 1
jmp case.0x59f7d1.34
mov eax, dword [esi + 0x38]
test eax, eax
jne case.0x59f7d1.34
mov eax, dword [esi + 0x50]
or al, 2
mov dword [esi + 0x50], eax
mov ecx, dword [ebp - 0x18]
movsx eax, word [ecx*2 + 0x5dcaf8]
jmp 0x59f964
mov eax, dword [esi + 0x38]
test eax, eax
jne case.0x59f7d1.34
mov eax, dword [esi + 0x50]
or al, 2
mov dword [esi + 0x50], eax
mov ecx, dword [ebp - 0x18]
lea eax, [ecx - 0x19]
movsx ecx, word [esi + 0x40]
movsx eax, byte [eax + eax*2 + 0x5dcb78]
add eax, ecx
mov dword [esi + 0x38], eax
test edx, edx
jne 0x59fc59
test byte [esi + 0x50], 2
je 0x59fa03
mov eax, dword [esi + 0x38]
cmp eax, 0x40
ja 0x59f98f
lea edi, [ebp - 0x128]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x10], edi
jmp 0x59f9ac
lea edx, [ebp - 0x10]
push edx
push 0
push eax
call fcn.005a3d00
add esp, 0xc
test eax, eax
jne 0x59fdad
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x34], 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.005a8c00
add esp, 0xc
test eax, eax
je 0x59f9e5
cmp eax, reloc.LMGR325C.dll_Ordinal_63
jne 0x59fdad
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x59fa03
mov edx, dword [ebp - 0x10]
cmp byte [edx], 0x20
jne 0x59fa03
mov ecx, edx
inc ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [esi + 0x38]
dec eax
mov dword [esi + 0x38], eax
jne 0x59f9ec
mov ecx, dword [esi + 0x38]
mov eax, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x34]
lea edx, [ecx + eax]
cmp edx, edi
ja 0x59fcc4
test byte [esi + 0x50], 2
je 0x59fa63
test ecx, ecx
je 0x59fa45
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 - 0x28]
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 0x59fa21
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
mov edx, dword [esi + 0x50]
and edx, 0xfffffffd
test eax, eax
mov dword [esi + 0x50], edx
je case.0x59f324.3
push eax
call fcn.005a3d70
add esp, 4
jmp case.0x59f324.3
push eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.005a8c00
add esp, 0xc
test eax, eax
je 0x59fa83
cmp eax, reloc.LMGR325C.dll_Ordinal_63
jne 0x59fdad
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x38]
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x94]
test eax, eax
jle 0x59fd34
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
jmp 0x59f1e9
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x59fdad
jmp 0x59fbd7
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 0x59fc50
inc eax
mov dword [esi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x59fb30
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.005a3d70
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.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x59fba0
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.005a3d70
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.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xc], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x59fdad
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.005a3d70
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]
push ebx
push eax
push eax
push 1
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
call fcn.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x59fc4c
mov dword [esi + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc eax
mov dword [esi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x59fcb0
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.005a3d70
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 + 0x34], edx
mov edx, dword [ebp - 8]
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
push ebx
push edx
push edx
push 1
call fcn.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x59fd18
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.005a3d70
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.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x6c]
test edi, edi
je 0x59fd8b
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.005a3d70
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 - 0x28]
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x6c], 0
mov eax, dword [esi + 0x4c]
test eax, 0x2000000
je 0x59fdc1
mov ecx, dword [esi + 4]
and eax, 0xfdffffff
push ecx
mov dword [esi + 0x4c], eax
call fcn.005a3d70
add esp, 4
test eax, eax
je 0x59fdc1
push ebx
push eax
push eax
push 1
call fcn.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x10]
test esi, esi
je 0x59fddc
push ebx
push esi
push esi
push 1
call fcn.005a4200
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x118]
mov edi, dword [ebx + 0x11c]
mov edx, dword [ebx + 0xb8]
and eax, 0xfdc6ffff
and edi, 0xfffffddf
push edx
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], edi
call fcn.005a8210
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