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

Disassembly:
push 0xffffffffffffffff
push 0x463f16
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00449f20
mov eax, dword [0x47eb18]
xor eax, esp
mov dword [esp + 0x1038], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47eb18]
xor eax, esp
push eax
lea eax, [esp + 0x1050]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1060]
push 0x800
mov dword [esp + 0x2c], ecx
xor ebx, ebx
lea ecx, [esp + 0x50]
push ebx
push ecx
mov dword [esp + 0x30], eax
call fcn.00449530
mov ebp, dword [0x468138]
add esp, 0xc
push 0x400
lea edx, [esp + 0x50]
push edx
push ebx
call ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00418f10
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x105c], ebx
call dword [0x468380]
mov edx, dword [0x47d064]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x105c], 1
call fcn.00421c40
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
add esp, 4
push ebx
push esi
push edi
call dword [0x46812c]
test eax, eax
jne 0x4222a3
mov ebx, dword [0x468284]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x47d060]
je 0x42227e
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x42227e
push esi
call fcn.00449df5
add esp, 4
lea edx, [edi - 0xc]
cmp edx, dword [0x47d060]
je 0x42229c
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x42229c
push esi
call fcn.00449df5
add esp, 4
xor eax, eax
jmp 0x42242c
mov dword [esp + 0x20], ebx
call fcn.004035f0
cmp eax, ebx
je 0x4223b7
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push str.SETUPDATA
push 0xc9
push ebx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4223b7
cmp dword [esp + 0x30], 0x18
jne 0x4223b7
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0xc]
push 0x800
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x850]
push 0
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call fcn.00449530
mov eax, dword [0x480a38]
add esp, 0xc
push 0x400
lea edx, [esp + 0x850]
push edx
push eax
call ebp
lea ecx, [esp + 0x84c]
push 0x471940
push ecx
call fcn.0044b46b
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4223b7
push 0x470988
push esi
call fcn.0044b46b
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4223ae
push ebx
call fcn.0044b2db
mov edi, eax
add esp, 4
test edi, edi
je 0x422395
push ebp
push 1
push ebx
push edi
call fcn.0044b26f
mov edx, dword [esp + 0x24]
push edx
push 1
push ebx
push edi
call fcn.0044af4d
push edi
call fcn.0044a345
add esp, 0x24
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], 1
call fcn.0044ad6f
mov edi, dword [esp + 0x1c]
add esp, 4
push ebp
call fcn.0044ad6f
add esp, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x14]
push ecx
push eax
lea ecx, [esp + 0x54]
push ecx
call dword [0x46839c]
push 0
lea edx, [esp + 0x50]
push edx
push esi
call fcn.00421980
add esp, 0xc
push esi
call dword [0x4681ec]
mov ebx, dword [0x468284]
lea eax, [esi - 0xc]
cmp eax, dword [0x47d060]
je 0x42240a
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x42240a
push esi
call fcn.00449df5
add esp, 4
lea ecx, [edi - 0xc]
cmp ecx, dword [0x47d060]
je 0x422428
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x422428
push esi
call fcn.00449df5
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1050]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1038]
xor ecx, esp
call fcn.0044951c
add esp, 0x1048
ret 4