Function at 0x47cda0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520126
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x56fcac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x70]
add ecx, 0x20
call fcn.0046f200
mov dword [ebp - 0x14], 0x5352d4
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 4]
and ecx, 0x40
je 0x47cdee
mov dword [ebp - 0x14], 0x5352dc
jmp 0x47ce00
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 4]
and eax, 0x20
je 0x47ce00
mov dword [ebp - 0x14], 0x5352e4
mov ecx, dword [ebp - 0x70]
mov dword [ecx], 0
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.0046ace0
push eax
call fcn.004f0951
add esp, 8
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
mov edx, dword [ebp - 0x70]
cmp dword [edx], 0
jne 0x47ce38
mov ecx, dword [ebp - 0x70]
call fcn.0047cb20
jmp 0x47d27b
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 4]
and edx, 0x10
je 0x47d117
push 2
push 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call fcn.004ebb5b
add esp, 0xc
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
push eax
call fcn.004f081d
add esp, 4
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x10], eax
push 0
push 0
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
push eax
call fcn.004ebb5b
add esp, 0xc
mov dword [ebp - 0x1c], 0x400
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x1c]
jge 0x47ceaf
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x47d112
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004aaa5e
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
je 0x47cef9
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
push edx
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004f066a
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xd], al
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x47d100
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 4]
and ecx, 0xfffffffa
mov edx, dword [ebp - 0x70]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x24]
shl eax, 4
cmp dword [eax + 0x56d9d8], 0
je 0x47cfdc
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0x56d9dc]
jge 0x47cf74
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jge 0x47cf67
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x18]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [eax + 0x56d9d8]
mov eax, dword [ebp - 0x18]
movsx ecx, byte [ecx + eax]
cmp edx, ecx
je 0x47cf69
jmp 0x47cf74
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x47cf2e
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x56d9dc]
jne 0x47cfc7
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 4]
or ecx, dword [edx + 0x56d9e4]
mov edx, dword [ebp - 0x70]
mov dword [edx + 4], ecx
cmp dword [ebp - 0x18], 2
jne 0x47cfad
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x18], 2
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov edx, dword [ecx + 0x56d9e0]
push edx
mov ecx, dword [ebp - 0x70]
add ecx, 0x24
call fcn.0047aaf0
jmp 0x47cfdc
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
jmp 0x47cf1b
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x18]
jle 0x47cff8
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call fcn.004ebb5b
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x47d0d3
lea ecx, [ebp - 0x48]
call fcn.0046e3e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x5352ec
call fcn.0046abf0
lea ecx, [ebp - 0x40]
call fcn.00487d80
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0046f190
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
push 0x5352f8
call fcn.0046abf0
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.0047b6a0
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0046e450
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp - 0x48]
push edx
call fcn.004873f0
lea eax, [ebp - 0x60]
push eax
call fcn.00481850
add esp, 8
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x78]
push edx
mov ecx, dword [ebp - 0x70]
add ecx, 0x24
call fcn.0046e420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0046e400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00487e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0046e400
mov ecx, dword [ebp - 0x70]
add ecx, 0x24
call fcn.00470ed0
movzx eax, al
test eax, eax
je 0x47d100
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
cmp edx, 0x3c
jne 0x47d100
push 0x535308
mov ecx, dword [ebp - 0x70]
add ecx, 0x24
call fcn.0047aaf0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004aaa63
add esp, 4
jmp 0x47d20c
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 4]
and eax, 0x20
je 0x47d20c
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 4]
and edx, 0x40
je 0x47d157
push 2
push 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call fcn.004ebb5b
add esp, 0xc
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
push eax
call fcn.004f081d
add esp, 4
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x10], eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
shl edx, 4
cmp dword [edx + 0x56d9d8], 0
je 0x47d20c
mov eax, dword [ebp - 0x4c]
shl eax, 4
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 4]
and edx, dword [eax + 0x56d9e4]
je 0x47d1fe
mov eax, dword [ebp - 0x4c]
shl eax, 4
mov ecx, dword [eax + 0x56d9dc]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 2
jne 0x47d1a4
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x18], 2
mov eax, dword [ebp - 0x4c]
shl eax, 4
mov ecx, dword [eax + 0x56d9e0]
push ecx
mov ecx, dword [ebp - 0x70]
add ecx, 0x24
call fcn.0047aaf0
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x10], 0
je 0x47d1ce
mov dword [ebp - 0x18], 0
jmp 0x47d1fc
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x4c]
shl eax, 4
mov ecx, dword [eax + 0x56d9d8]
push ecx
call fcn.004eb346
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xd], al
jmp 0x47d20c
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x47d15e
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x47d21e
mov ecx, dword [ebp - 0x70]
call fcn.0047cb20
jmp 0x47d27b
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 4]
and edx, 0x40
je 0x47d237
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x14], edx
jmp 0x47d240
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
cmp dword [ebp - 0x18], 0
je 0x47d278
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0
call fcn.0046abf0
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0x535314
call fcn.0046abf0
mov edx, dword [ebp - 0x70]
add edx, 0x20
push edx
call fcn.0047b1d0
add esp, 0x18
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4