Function at 0x42d500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x44d890]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, dword [esp + 0x234]
push esi
mov esi, dword [esp + 0x234]
push edi
push esi
call fcn.0042d460
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_2
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d56c
push ebx
lea eax, [esp + 0x34]
push str.Error_opening_character_file:_n_s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041a670
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push 0
push 0x19e830c
push 0x20
push esi
push edi
call ebx
push 0
push 0x19e830c
push 4
lea eax, [esi + 0x20]
push eax
push edi
call ebx
push 0
push 0x19e830c
push 4
lea eax, [esi + 0x24]
push eax
push edi
call ebx
mov edx, dword [0x1991560]
push 0x30020
push 0
push edx
call fcn.0042b5f0
add esp, 0xc
push 0
push 0x19e830c
push 4
push eax
push edi
mov dword [esi + 0x28], eax
call ebx
mov eax, dword [esi + 0x28]
push 0
push 0x19e830c
push 4
add eax, 4
push eax
push edi
call ebx
mov ecx, dword [esi + 0x28]
push 0
push 0x19e830c
push 4
add ecx, 8
push ecx
push edi
call ebx
mov eax, dword [esi + 0x28]
mov edx, dword [eax + 4]
push 0
push 0x19e830c
shl edx, 6
push edx
add eax, 0x8010
push eax
push edi
call ebx
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
push 0
push 0x19e830c
shl ecx, 4
push ecx
add eax, 0x10
push eax
push edi
call ebx
cmp dword [0x54f6cc], 0
mov eax, dword [esi + 0x28]
mov ebp, dword [eax + 8]
je 0x42d635
mov dword [eax + 0xc], 0x100
jmp 0x42d63d
mov edx, ebp
sar edx, 9
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0xc]
shl ecx, 9
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 8]
mov ecx, dword [0x1991560]
push eax
push 0
push ecx
call fcn.0042b5f0
mov edx, dword [esi + 0x28]
add esp, 0xc
push 0
mov dword [edx + 0x28010], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x28010]
push 0x19e830c
push ebp
push ecx
push edi
call ebx
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esi + 0x28]
sar eax, 1
push eax
mov eax, dword [edx + 0x28010]
push eax
call fcn.0042bf50
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x28010]
push ecx
push edx
call fcn.0042c250
add esp, 0x10
cmp dword [esi + 0x20], 0
mov dword [esp + 0x10], 0
jle 0x42d751
lea ebp, [esi + 0x4c]
push 0
push 0x19e830c
push 0x20
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
push 0
push 0x19e830c
push 4
push ebp
push edi
call ebx
push 0
push 0x19e830c
push 4
lea eax, [ebp + 4]
push eax
push edi
call ebx
mov ecx, dword [ebp + 4]
mov eax, ecx
imul eax, eax, 0x3e8
cdq
idiv dword [ebp]
mov dword [ebp + 8], eax
mov edx, dword [esi + 0x28]
mov eax, dword [edx]
imul eax, ecx
mov ecx, dword [0x1991560]
lea eax, [eax + eax*2]
add eax, eax
push eax
push 0
push ecx
call fcn.0042b5f0
mov dword [ebp + 0xc], eax
mov edx, dword [esi + 0x28]
mov ecx, dword [edx]
imul ecx, dword [ebp + 4]
add esp, 0xc
push 0
push 0x19e830c
lea ecx, [ecx + ecx*2]
add ecx, ecx
push ecx
push eax
push edi
call ebx
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x30
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x20]
jl 0x42d6c1
cmp dword [esi + 0x24], 0
mov dword [esp + 0x10], 0
jle 0x42d7bb
lea ebp, [esi + 0xc2c]
push 0
push 0x19e830c
push 0x20
lea edx, [esp + 0x20]
push edx
push edi
call ebx
push 0
push 0x19e830c
push 4
push ebp
push edi
call ebx
mov eax, dword [ebp]
mov ecx, dword [0x1991560]
push eax
push 0
push ecx
call fcn.0042b5f0
mov edx, dword [ebp]
add esp, 0xc
push 0
push 0x19e830c
push edx
push eax
push edi
mov dword [ebp + 4], eax
call ebx
mov eax, dword [esp + 0x10]
inc eax
add ebp, 8
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x24]
jl 0x42d765
mov eax, dword [esi + 0x28]
xor edx, edx
pop ebp
cmp dword [eax], edx
jle 0x42d80f
fld qword [0x4416f8]
xor eax, eax
fld qword [0x443048]
mov ecx, dword [esi + 0x28]
fld dword [eax + ecx + 0x10]
lea ecx, [eax + ecx + 0x10]
fmul st(2)
inc edx
fstp dword [ecx]
mov ecx, dword [esi + 0x28]
fld dword [eax + ecx + 0x14]
lea ecx, [eax + ecx + 0x14]
fmul st(2)
fstp dword [ecx]
mov ecx, dword [esi + 0x28]
fld dword [eax + ecx + 0x18]
lea ecx, [eax + ecx + 0x18]
fmul st(1)
add eax, 0x10
fstp dword [ecx]
mov ecx, dword [esi + 0x28]
cmp edx, dword [ecx]
jl 0x42d7d3
fstp st(1)
fstp st(0)
mov edx, dword [esi + 0x28]
push edx
call fcn.0042c560
add esp, 4
push 0
push 0x19e830c
push 0x100
lea eax, [esi + 0xe2c]
push eax
push edi
call ebx
cmp dword [0x19e830c], 0x100
je 0x42d86b
xor eax, eax
mov dword [0x19e830c], eax
jmp 0x42d850
mov dword [esi + eax*4 + 0xe2c], 0xffffffff
mov eax, dword [0x19e830c]
inc eax
mov dword [0x19e830c], eax
cmp eax, 0x40
jb 0x42d850
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004305fb
add esp, 0x228
ret