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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x3c
cmp eax, 4
push ebx
push ebp
push esi
push edi
jbe 0x529409
push 0x117
push 0x40ea7c
call fcn.0052c5c8
add esp, 8
push 0xffffffffffffffff
call fcn.0052c457
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x10], eax
mov ebx, dword [eax + 0x40e8d4]
mov ebp, dword [eax + 0x40e8d0]
mov dword [esp + 0x14], ebx
mov eax, dword [0x4185a8]
mov edi, dword [eax + ebp + 7]
lea esi, [eax + ebp]
cmp edi, 0xffffffff
je 0x52953a
push 3
lea ecx, [esi + 2]
push 0x40e504
push ecx
call fcn.0052c590
add esp, 0xc
test eax, eax
jne 0x5296ed
xor edx, edx
mov dl, byte [esi]
lea eax, [edi + edx + 3]
mov edi, dword [0x4185bc]
test edi, edi
je 0x529466
inc eax
mov edx, dword [esp + 0x58]
xor ecx, ecx
mov cx, word [esi + 0x11]
cmp ecx, edx
jne 0x52951e
mov ecx, dword [0x4185a8]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x50], eax
mov eax, dword [ecx + ebp + 7]
cmp eax, 0xffffffff
je 0x5294a3
xor edx, edx
mov dl, byte [ecx + ebp]
test edi, edi
lea eax, [eax + edx + 3]
je 0x52949d
inc eax
add ebp, eax
cmp ebp, ebx
jb 0x529486
cmp ebp, ebx
ja 0x5296ed
mov esi, dword [esp + 0x54]
push 0
push 0
push esi
call fcn.0052f2b0
lea eax, [esp + 0x28]
push 0x30
push eax
push esi
call fcn.0052fc34
mov eax, dword [esp + 0x3b]
add esp, 0x18
cmp eax, 0xffffffff
je 0x5296ed
mov ecx, dword [esp + 0x1c]
and ecx, 0xff
lea eax, [ecx + eax + 3]
mov ecx, dword [0x4185bc]
test ecx, ecx
je 0x5294ef
inc eax
mov esi, dword [esp + 0x50]
sub eax, esi
add eax, ebp
cmp eax, ebx
jbe 0x529508
mov eax, dword [0x40f74c]
test eax, eax
je 0x5296fa
mov edx, dword [esp + 0x18]
push ebx
push esi
push edx
call fcn.00529990
add esp, 0xc
sub ebp, esi
jmp 0x529423
add ebp, eax
cmp ebp, ebx
jb 0x529423
mov eax, dword [0x40f74c]
test eax, eax
je 0x5296fa
jmp 0x529423
mov esi, dword [esp + 0x54]
push 0
push 0
push esi
call fcn.0052f2b0
lea eax, [esp + 0x28]
push 0x30
push eax
push esi
call fcn.0052fc34
push 5
lea ecx, [esp + 0x3a]
push 0x40ea74
push ecx
call fcn.00529a20
add esp, 0x24
test eax, eax
jne 0x529585
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x23]
and edx, 0xff
lea edi, [edx + eax + 3]
mov dword [esp + 0x50], edi
jmp 0x52959d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x23]
and ecx, 0xff
lea eax, [ecx + edx + 3]
mov dword [esp + 0x50], eax
mov edi, eax
mov eax, dword [0x4185bc]
test eax, eax
je 0x5295ab
inc edi
mov dword [esp + 0x50], edi
mov eax, dword [0x40f74c]
test eax, eax
je 0x529657
lea ecx, [edi + ebp]
cmp ecx, ebx
jbe 0x529657
mov eax, dword [esp + 0x10]
mov edx, edi
mov edi, dword [0x4185a8]
mov esi, dword [eax + 0x40e8d0]
mov ebx, dword [eax + 0x40e8d4]
mov eax, dword [esp + 0x14]
sub ebx, esi
sub edx, eax
mov eax, esi
add edx, ebp
mov ecx, ebx
sub eax, edx
add esi, edi
mov dword [esp + 0x58], eax
add edi, eax
mov eax, ecx
sub ebp, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
or eax, 0xffffffff
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x4185a8]
mov edi, dword [esp + 0x58]
mov ecx, edx
add edi, esi
mov esi, ecx
add edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x54]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov edi, dword [0x418594]
add edi, edx
mov ebx, dword [eax + 0x40e8d0]
mov dword [0x418594], edi
sub ebx, edx
mov edi, dword [esp + 0x50]
mov dword [eax + 0x40e8d0], ebx
mov eax, dword [0x41858c]
mov ebx, dword [esp + 0x14]
sub dword [eax], edx
lea ecx, [edi + ebp]
cmp ecx, ebx
ja 0x5296fa
push 0
push 0
push esi
call fcn.0052f2b0
mov eax, dword [0x4185bc]
add esp, 0xc
test eax, eax
jne 0x52969e
mov edx, dword [0x4185a8]
push edi
add edx, ebp
push edx
push esi
call fcn.0052fc34
add esp, 0xc
push esi
call fcn.0052f825
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov eax, dword [0x4185a8]
mov ecx, dword [esp + 0x54]
lea esi, [edi - 1]
add eax, ebp
push esi
push eax
push ecx
xor bl, bl
call fcn.0052fc34
mov edx, dword [0x4185a8]
add esp, 0xc
xor eax, eax
test esi, esi
jbe 0x5296d0
lea ecx, [edx + ebp]
add bl, byte [ecx + eax]
inc eax
cmp eax, esi
jb 0x5296c8
mov esi, dword [esp + 0x54]
add edx, edi
push esi
mov byte [edx + ebp - 1], bl
call fcn.0052f825
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push 0x40ea64
call fcn.0052c5c8
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret