Function at 0x40120c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [0x46a020]
cmp edi, 0x207142
jg 0x401233
inc edi
cmp edi, 0x67d12
jl 0x40121c
cmp dword [0x248eef4], 0x93
jne 0x401308
push esi
call dword [0x46a07c]
push esi
push esi
push esi
push esi
call dword [0x46a004]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
call dword [0x46a0b8]
push esi
push esi
push esi
push 0x46c2c0
push 0x46c2dc
push 0x46c308
call dword [0x46a05c]
push esi
push esi
push esi
call dword [0x46a030]
push dword [ebp - 8]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [0x46a194]
push esi
call dword [0x46a1b8]
push esi
push esi
push esi
call dword [0x46a044]
push esi
lea eax, [ebp - 0x814]
push eax
push esi
call dword [0x46a070]
push 0x46c334
push 0x46c350
push 0x47c800
call fcn.0040165f
push esi
push esi
push esi
push esi
call fcn.00401c21
push esi
push esi
call fcn.0040199c
add esp, 0x24
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0x46c374
call fcn.004016e4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x46c490
call fcn.0040170b
push esi
push esi
call fcn.00401991
pop ecx
pop ecx
mov eax, dword [0x47183c]
add dword [0x248eef4], 0x1134b
push 0x46c384
mov dword [0x248fd30], eax
call dword [0x46a08c]
push 0x46c394
push eax
mov dword [0x248e984], eax
call dword [0x46a06c]
push dword [0x248eef4]
mov dword [0x248e978], eax
push esi
call dword [0x46a038]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x248eef4]
mov dword [0x248e980], eax
push eax
call dword [0x248e978]
xor edi, edi
cmp edi, 0xacc
jge 0x401394
push esi
push esi
call dword [0x46a1a4]
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [0x46a008]
push esi
push esi
push esi
push esi
push esi
call dword [section..rdata]
push esi
call dword [0x46a1b0]
push esi
push esi
push esi
call dword [0x46a054]
cmp edi, 0x45be411
jg 0x4013ae
inc edi
cmp edi, 0x3330601
jl 0x401364
mov ebx, dword [0x46a0bc]
mov edi, 0x1692e
push esi
lea eax, [ebp - 0x414]
push eax
call dword [0x46a19c]
call dword [0x46a1a0]
call ebx
dec edi
jne 0x4013b9
cmp dword [0x248eef4], esi
jbe 0x401430
mov eax, dword [0x248fd30]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x248e980]
mov byte [ecx + edi], al
cmp dword [0x248eef4], 0x490
jne 0x401427
push esi
push esi
push esi
push esi
call dword [0x46a0a0]
call dword [0x46a034]
push esi
call dword [0x46a074]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [0x46a09c]
push esi
push esi
call dword [0x46a078]
inc edi
cmp edi, dword [0x248eef4]
jb 0x4013da
xor edi, edi
mov eax, dword [0x248eef4]
add eax, edi
cmp eax, 0x8d
jne 0x40145f
push esi
push esi
call dword [0x46a04c]
push esi
call dword [0x46a1a8]
push 0x46c3a4
push 0x46c3d4
call dword [0x46a018]
inc edi
cmp edi, 0x38681
jl 0x401432
call fcn.0040114e
xor edi, edi
call ebx
cmp edi, 0x61
jne 0x401489
mov dword [ebp - 4], esi
add dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add dword [0x248e980], eax
inc edi
cmp edi, 0x674bd
jl 0x40146f
push 0x7b
pop edi
cmp dword [0x248eef4], 0x86
jne 0x4014d2
push esi
push esi
push esi
push esi
push esi
push esi
push 0x46c410
call dword [0x46a0c0]
push esi
push esi
call dword [0x46a080]
push esi
call dword [0x46a060]
push esi
push esi
push esi
push esi
call dword [0x46a098]
push esi
call dword [0x46a050]
dec edi
jne 0x401495
push 0x46c448
call dword [0x46a074]
call dword [0x248e980]
pop edi
pop esi
pop ebx
leave
ret