Function at 0x527bc0
Capabilities:
Read file on windows
Terminate process

Disassembly:
sub esp, 0x100
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
push esi
cmp ebp, 3
push edi
mov dword [esp + 0x2c], 0
jge 0x527be3
call fcn.00528620
mov ebx, dword [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
mov edi, dword [ebx + 4]
mov dword [esp + 0x10], 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
lea esi, [ebx + 8]
push ecx
call fcn.00527b70
add esp, 4
cmp eax, 0xffffffff
je 0x527c44
cmp ebp, 3
jne 0x527c49
mov edx, eax
shl edx, 4
mov eax, dword [edx + eax + 0x40e030]
cmp eax, 0x14
je 0x527c49
cmp eax, ebp
je 0x527c49
call fcn.00528620
call fcn.00528690
lea eax, [esp + 0x64]
push eax
call fcn.00528ff0
add esp, 4
test eax, eax
je 0x527c81
lea ecx, [esp + 0x64]
push ecx
push 0x40e560
call fcn.0052c5c8
add esp, 8
mov eax, 0x4b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov edx, dword [0x4185a8]
xor eax, eax
mov al, byte [edx + 0x7e05a]
and eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [0x40f748]
test eax, eax
je 0x527ca9
mov dword [0x40f740], 1
lea ebp, [ebx + 0xc]
add ebx, 0x10
mov dword [esp + 0x18], 3
mov dword [esp + 0x20], 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ecx
call fcn.00527b70
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x528541
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x114]
cmp edx, eax
mov dword [esp + 0x28], 1
jge 0x527d13
mov eax, dword [ebp]
push eax
call fcn.00527b70
add esp, 4
cmp eax, 0xffffffff
jne 0x527d13
mov dword [esp + 0x28], 0
jmp 0x527d32
mov ecx, esi
shl ecx, 4
mov eax, dword [ecx + esi + 0x40e030]
cmp eax, 3
je 0x527d32
cmp eax, 0x14
je 0x527d32
cmp eax, 0xe
jne 0x528555
mov ebx, esi
shl ebx, 4
add ebx, esi
mov eax, dword [ebx + 0x40e030]
test eax, eax
jne 0x527db6
mov edi, dword [ebp]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x40e224]
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 [ebp]
push eax
call fcn.005286c0
add esp, 4
mov dword [esp + 0x24], eax
test ax, ax
je 0x52856e
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [esp + 0x10], eax
mov eax, 4
add edi, eax
add esi, eax
add ebp, eax
mov eax, dword [esp + 0x18]
inc ecx
inc eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jmp 0x527e33
cmp eax, 0xe
jne 0x527e00
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, 4
inc ebx
add edi, eax
add esi, eax
add ebp, eax
mov eax, dword [esp + 0x18]
inc ecx
inc eax
mov dword [0x40f740], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jmp 0x527cc7
lea edi, [ebx + 0x40e034]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x40e224]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [ebx + 0x40e03b]
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x527e6b
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
push 0x4185e0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4185e0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00532e9c
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x114]
cmp eax, ecx
jge 0x5280b1
mov esi, 0x40e558
mov eax, 0x4185e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x527eac
test cl, cl
je 0x527ea8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x527eac
add eax, 2
add esi, 2
test cl, cl
jne 0x527e88
xor eax, eax
jmp 0x527eb1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x527ef0
mov esi, 0x40e550
mov eax, 0x4185e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x527ee3
test cl, cl
je 0x527edf
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x527ee3
add eax, 2
add esi, 2
test cl, cl
jne 0x527ebf
xor eax, eax
jmp 0x527ee8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5280b1
mov esi, 0x40e550
mov eax, 0x4185e0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x527f1e
test cl, cl
je 0x527f1a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x527f1e
add eax, 2
add esi, 2
test cl, cl
jne 0x527efa
xor eax, eax
jmp 0x527f23
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x52803d
mov eax, dword [0x40e544]
mov ecx, dword [0x40e548]
mov edx, dword [0x40e54c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x98], edx
cmp eax, ecx
jge 0x527fda
mov ecx, dword [esp + 0x14]
push 1
push 0x40e540
mov edx, dword [ecx]
push edx
call fcn.0052c590
add esp, 0xc
test eax, eax
je 0x527fda
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x90]
mov edi, dword [edx]
mov dword [esp + 0x14], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 4
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
add ebp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add edi, 4
inc ecx
inc eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x90]
and eax, 0xffff
push ecx
push eax
call fcn.00529710
add esp, 8
test eax, eax
push 0x4185e0
je 0x52801d
mov edx, dword [0x40e224]
mov eax, dword [ebx + 0x40e03d]
push edx
push eax
push 0x40e524
call fcn.0052c5c8
add esp, 0x10
jmp 0x52848c
mov ecx, dword [0x40e224]
mov edx, dword [ebx + 0x40e03d]
push ecx
push edx
push 0x40e508
call fcn.0052c5c8
add esp, 0x10
jmp 0x52848c
push 0x40e558
push 0x4185e0
call fcn.00532e10
add esp, 8
test eax, eax
jne 0x52848c
mov eax, dword [esp + 0x24]
and eax, 0xffff
push eax
call fcn.00529880
add esp, 4
test eax, eax
push 0x4185e0
je 0x528091
mov eax, dword [0x40e224]
mov ecx, dword [ebx + 0x40e03d]
push eax
push ecx
push 0x40e524
call fcn.0052c5c8
add esp, 0x10
jmp 0x52848c
mov edx, dword [0x40e224]
mov eax, dword [ebx + 0x40e03d]
push edx
push eax
push 0x40e508
call fcn.0052c5c8
add esp, 0x10
jmp 0x52848c
mov eax, dword [ebx + 0x40e030]
cmp eax, 0x14
jne 0x5280c6
call fcn.00528720
jmp 0x52848c
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x5282cb
push 0x8000
push 0x4185e0
call fcn.00531968
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x528592
lea ecx, [esp + 0x34]
push 0x30
push ecx
push esi
call fcn.0052fc34
push esi
call fcn.0052f825
push 3
lea edx, [esp + 0x4a]
push 0x40e504
push edx
call fcn.0052c590
add esp, 0x1c
test eax, eax
je 0x5285b6
push 2
lea eax, [esp + 0x38]
push 0x40e500
push eax
call fcn.0052c590
add esp, 0xc
test eax, eax
jne 0x5281c5
mov eax, dword [ebx + 0x40e030]
cmp eax, 0x16
je 0x52819b
cmp word [esp + 0x50], 8
je 0x52819b
cmp eax, 2
jne 0x528161
mov ecx, dword [ebp]
push 0
push 0
push 0x40e4f0
push ecx
jmp 0x528171
mov edx, dword [esp + 0x30]
mov eax, dword [ebp]
push edx
push 1
push 0x40e4f0
push eax
call fcn.00528b20
mov ecx, dword [ebp]
add esp, 0x10
push ecx
push 1
push 0x40e4f0
call fcn.0052b0f0
push 0x40e4f0
call fcn.0052c556
add esp, 0x10
jmp 0x5282b2
mov edx, dword [ebp]
push edx
call fcn.00528990
add esp, 4
test eax, eax
jne 0x5282b2
mov eax, dword [ebp]
push eax
push 0x40e4a0
call fcn.0052c5c8
add esp, 8
jmp 0x5282b2
push 2
lea ecx, [esp + 0x38]
push 0x40e49c
push ecx
call fcn.0052c590
add esp, 0xc
test eax, eax
jne 0x5282a2
mov edx, dword [ebp]
push 0x8000
push edx
call fcn.00531968
push 0x180
push 0x8302
push 0x40e48c
mov esi, eax
call fcn.00531968
mov edi, eax
mov eax, dword [esp + 0x50]
and eax, 0xffff
push 0
shl eax, 4
push eax
push esi
call fcn.0052f2b0
add esp, 0x20
mov ecx, dword [0x4185c4]
push 0x8000
push ecx
push esi
call fcn.0052fc34
add esp, 0xc
test ax, ax
je 0x528251
mov edx, dword [0x4185c4]
and eax, 0xffff
push eax
push edx
push edi
call fcn.0052f34a
add esp, 0xc
jmp 0x52821f
push esi
call fcn.0052f825
push edi
call fcn.0052f825
mov eax, dword [ebp]
push 0x40e47c
push eax
call fcn.0052c561
mov ecx, dword [ebp]
push ecx
push 0x40e48c
call fcn.0052c561
mov edx, dword [ebp]
push 0
push 1
push edx
call fcn.0052b0f0
mov eax, dword [ebp]
push eax
call fcn.0052c52c
mov ecx, dword [ebp]
push ecx
push 0x40e47c
call fcn.0052c561
add esp, 0x30
jmp 0x5282b2
mov edx, dword [ebp]
push 0
push 1
push edx
call fcn.0052b0f0
add esp, 0xc
push 0x8000
push 0x40e470
call fcn.00531968
add esp, 8
mov esi, eax
jmp 0x528440
cmp eax, 3
jne 0x528478
push 0x8000
push 0x40e464
call fcn.00531968
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x5285da
lea eax, [esp + 0x34]
push 0x30
push eax
push esi
call fcn.0052fc34
add esp, 0xc
test ax, ax
je 0x52846f
push 2
lea ecx, [esp + 0x38]
push 0x40e49c
push ecx
call fcn.0052c590
add esp, 0xc
test eax, eax
jne 0x52838b
push 0x180
push 0x8302
push 0x40e458
call fcn.00531968
mov edx, dword [esp + 0x48]
push 0
and edx, 0xffff
mov edi, eax
shl edx, 4
push edx
push esi
call fcn.0052f2b0
add esp, 0x18
mov eax, dword [0x4185c4]
push 0x8000
push eax
push esi
call fcn.0052fc34
add esp, 0xc
test ax, ax
je 0x528382
mov ecx, dword [0x4185c4]
and eax, 0xffff
push eax
push ecx
push edi
call fcn.0052f34a
add esp, 0xc
jmp 0x528351
push edi
call fcn.0052f825
add esp, 4
push esi
call fcn.0052f825
push 0x180
push 0x8002
push 0x40e458
call fcn.00531968
push 0x8000
push 0x40e44c
mov esi, eax
call fcn.00531968
push 2
push 0
push esi
mov edi, eax
call fcn.0052f2b0
add esp, 0x24
mov edx, dword [0x4185c4]
push 0x8000
push edx
push edi
call fcn.0052fc34
add esp, 0xc
test ax, ax
je 0x5283f6
and eax, 0xffff
push eax
mov eax, dword [0x4185c4]
push eax
push esi
call fcn.0052f34a
add esp, 0xc
jmp 0x5283c5
push edi
call fcn.0052f825
push esi
call fcn.0052f825
push 0
push 1
push 0x40e458
call fcn.0052b0f0
push 0x8000
push 0x40e470
call fcn.00531968
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x528478
lea ecx, [esp + 0x64]
push ecx
push 0x40e458
push 0x40e430
call fcn.0052c5c8
add esp, 0xc
cmp esi, 0xffffffff
je 0x528478
mov eax, dword [esp + 0x24]
and eax, 0xffff
push eax
push esi
call fcn.00529350
add esp, 8
test eax, eax
je 0x528464
mov dword [esp + 0x2c], 0x3a
push esi
call fcn.0052f825
add esp, 4
jmp 0x52848c
push esi
call fcn.0052f825
add esp, 4
mov edx, dword [ebx + 0x40e03d]
push edx
push 0x40e418
call fcn.0052c5c8
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5284cc
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, 4
inc ebx
add edi, eax
add esi, eax
add ebp, eax
mov eax, dword [esp + 0x18]
inc ecx
inc eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jmp 0x52850a
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, 2
add ecx, eax
add edx, eax
mov dword [esp + 0x10], ecx
mov ecx, 8
add ebx, ecx
add edi, ecx
add ebp, ecx
mov ecx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x114]
cmp eax, ecx
jge 0x5285f3
mov ecx, dword [0x40e220]
mov edx, dword [0x40e470]
mov dword [ecx], edx
mov eax, dword [0x40e474]
mov dword [ecx + 4], eax
mov dl, byte [0x40e478]
mov byte [ecx + 8], dl
jmp 0x527cc7
push 0x40e40c
call fcn.0052c5c8
add esp, 4
push 1
call fcn.0052c457
push 0x40e3e0
push 0x40ebc8
call fcn.0052c33f
add esp, 8
push 0x34
call fcn.0052c457
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4 + 4]
push edx
push 0x40e3c4
call fcn.0052c5c8
add esp, 8
push 1
call fcn.0052c457
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4 + 4]
push edx
push 0x40e3b4
call fcn.0052c5c8
add esp, 8
push 0x36
call fcn.0052c457
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4 + 4]
push edx
push 0x40e39c
call fcn.0052c5c8
add esp, 8
push 0x37
call fcn.0052c457
push 0x40e464
push 0x40e384
call fcn.0052c5c8
add esp, 8
push 0x36
call fcn.0052c457
call fcn.00529150
mov eax, dword [0x4185c4]
push eax
call fcn.0052c310
mov eax, dword [esp + 0x30]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret