Function at 0x434300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov ecx, dword [eax + 0x84]
mov eax, dword [eax + 0x8c]
lea edx, [ecx + ecx*4]
push edi
shl edx, 4
mov ecx, dword [edx + eax + 0x30]
lea ebx, [esi + 8]
push 0x2e
push ebx
lea edi, [esi + 0x9c]
mov dword [esi + 0x88], ecx
call fcn.00438380
add esp, 4
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
test eax, eax
jne 0x43437b
mov eax, ebx
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x434360
mov edx, dword [str..pcx]
mov dword [eax], edx
mov cl, byte [0x538fa8]
mov byte [eax + 4], cl
push 0x525ca8
push ebx
call fcn.00522f10
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x4343a8
call fcn.005225b0
pop edi
pop esi
pop ebp
mov dword [eax], 0x28e
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0x80
push 0
push edi
call sub.MSVCR80.dll_memset
push ebp
push 0x80
push 1
push edi
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x1c
cmp eax, 0x80
je 0x4343ec
call fcn.005225b0
mov dword [eax], 0x291
push ebp
call fcn.00522fc0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
cmp byte [edi], 0xa
jne 0x4343ce
cmp byte [edi + 3], 0
jbe 0x4343ce
mov edx, 4
cmp byte [edi + 1], dl
jbe 0x434406
cmp byte [edi + 0x41], dl
ja 0x4343ce
cmp byte [edi + 2], 1
jne 0x4343ce
mov ax, word [edi + 8]
sub ax, word [edi + 4]
add ax, 1
mov word [esi + 0x96], ax
mov cx, word [edi + 0xa]
sub cx, word [edi + 6]
add cx, 1
mov word [esi + 0x94], cx
movzx eax, word [edi + 0x42]
add eax, edx
movzx ecx, cx
imul eax, ecx
add eax, edx
movzx edx, byte [edi + 0x41]
imul eax, edx
test eax, eax
je 0x4343d9
push eax
call fcn.005228c0
add esp, 4
test eax, eax
mov dword [esi + 0x8c], eax
je 0x4343d9
mov dword [esi + 0x90], eax
movzx edx, byte [edi + 0x41]
xor ecx, ecx
test edx, edx
lea eax, [eax + edx*4]
mov dword [esp + 0x24], ecx
jle 0x4344df
lea esp, [esp]
mov edx, dword [esi + 0x90]
mov dword [edx + ecx*4], eax
movzx edx, word [esi + 0x94]
xor ecx, ecx
test edx, edx
lea eax, [eax + edx*4]
mov dword [esp + 0x10], ecx
jle 0x4344cc
lea ecx, [ecx]
mov edx, dword [esi + 0x90]
mov ebx, dword [esp + 0x24]
mov edx, dword [edx + ebx*4]
mov dword [edx + ecx*4], eax
movzx ecx, word [edi + 0x42]
movzx edx, word [esi + 0x94]
add eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x4344a0
mov ecx, dword [esp + 0x24]
movzx edx, byte [edi + 0x41]
add ecx, 1
cmp ecx, edx
mov dword [esp + 0x24], ecx
jl 0x434480
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea ecx, [ecx]
push ebp
call dword [sym.imp.MSVCR80.dll_getc]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x434589
and eax, 0xc0
cmp al, 0xc0
mov dword [esp + 0x14], 1
jne 0x434529
and ebx, 0x3f
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCR80.dll_getc]
add esp, 4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4344f0
xor ebp, ebp
cmp ebp, dword [esp + 0x14]
jge 0x4345cc
mov ecx, dword [esi + 0x90]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov byte [eax + edx], bl
movzx ecx, byte [edi + 0x41]
movzx eax, word [esi + 0x94]
push ecx
lea edx, [esp + 0x28]
push edx
movzx edx, word [edi + 0x42]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00436d60
add esp, 0x18
add ebp, 1
test eax, eax
je 0x434530
mov ebp, dword [esp + 0x1c]
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 0x41]
imul ecx, edx
mov eax, 1
shl eax, cl
cmp eax, 0x10
mov dword [esi + 0x11c], eax
jle 0x43461d
mov edi, dword [sym.imp.MSVCR80.dll_fgetc]
lea esp, [esp]
push ebp
call edi
add esp, 4
cmp eax, 0xc
je 0x4345d5
cmp eax, 0xffffffff
jne 0x4345b0
mov dword [esi + 0x11c], 0x10
jmp 0x43461d
mov ebp, dword [esp + 0x1c]
jmp 0x4344f0
mov eax, dword [esi + 0x11c]
lea eax, [eax + eax*2]
push eax
call fcn.005228c0
add esp, 4
test eax, eax
mov dword [esi + 0x120], eax
push ebp
je 0x4343da
mov ecx, dword [esi + 0x11c]
lea ecx, [ecx + ecx*2]
push ecx
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
mov ecx, dword [esi + 0x11c]
lea edx, [ecx + ecx*2]
add esp, 0x10
cmp eax, edx
jne 0x4343ce
push ebp
call fcn.00522fc0
push esi
call fcn.00434200
mov edi, eax
mov eax, dword [esi + 0x8c]
push eax
call fcn.00522970
mov esi, dword [esi + 0x120]
add esp, 0xc
test esi, esi
je 0x43464d
push esi
call fcn.00522970
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret