Function at 0x450150
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov edx, dword [ebp + 0x9c]
cmp dword [edx + 0x2c], 3
je 0x450280
mov esi, dword [ebx]
mov eax, dword [edx + 0xa0]
mov edi, dword [edx + 0xa4]
cmp eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
sbb edi, 0
jge 0x4501d5
movzx edi, byte [ebp + 0xc9]
and edi, 0x20
mov ecx, edi
mov edi, dword [0x137714c0]
mov byte [esp + 0x24], cl
cmp dword [edx], edi
je 0x450550
cmp dword [edx + 0x78], 1
je 0x450340
movzx edx, byte [esp + 0x24]
test dl, dl
jne 0x450350
mov ecx, dword [esp + 0x18]
or ecx, eax
je 0x450741
mov dword [ebx], eax
mov edx, dword [ebp + 0x9c]
mov eax, dword [edx + 0x3c]
test eax, eax
jne 0x4501f0
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x45028b
cmp eax, 3
je 0x45028b
mov eax, dword [ebx]
xor edi, edi
sub dword [edx + 0xa0], eax
sbb dword [edx + 0xa4], edi
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 0x18], eax
call sym.__gfortrani_fbuf_read
mov dword [esp + 8], 1
mov esi, eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x9c]
mov dword [esp], eax
call sym.__gfortrani_fbuf_seek
test dword [ebp], 0x400
mov edi, dword [ebp + 0x9c]
mov ecx, dword [ebx]
je 0x450275
xor edx, edx
add dword [edi + 0x1c8], ecx
adc dword [edi + 0x1cc], edx
cmp dword [esp + 0x18], ecx
je 0x45025d
cmp dword [edi + 0x78], 1
je 0x450450
xor ebx, ebx
add dword [edi + 0xa8], ecx
adc dword [edi + 0xac], ebx
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [edi + 0x1c0], 0
je 0x45024d
jmp 0x45023f
mov eax, dword [edx + 0x3c]
test eax, eax
jne 0x4501f0
test byte [ebp + 0xc9], 0x20
jne 0x450394
mov esi, dword [ebp + 0xc0]
test esi, esi
jne 0x4506a0
mov ecx, dword [edx + 0x1b8]
test ecx, ecx
jg 0x4507e9
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4508f6
mov dword [esp + 0x18], edx
xor edi, edi
mov dword [esp + 0x50], ebp
jmp 0x450308
mov esi, dword [eax]
lea ebp, [ecx + 1]
mov dword [eax + 0xc], ebp
movzx eax, byte [esi + ecx]
cmp dword [edx + 0x70], 2
je 0x4502f4
cmp eax, 0xa
je 0x4506c0
cmp eax, 0xd
je 0x4506c0
cmp eax, 0x2c
je 0x450480
add edi, 1
cmp edi, dword [ebx]
jae 0x450600
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
jb 0x4502d0
mov dword [esp], edx
call sym.__gfortrani_fbuf_getc_refill
cmp eax, 0xffffffff
je 0x450600
mov esi, dword [esp + 0x50]
mov edx, dword [esi + 0x9c]
mov dword [esp + 0x18], edx
jmp 0x4502dc
movzx edx, byte [esp + 0x24]
test dl, dl
je 0x450375
lea esi, [esi]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4501cd
mov ecx, dword [esp + 0x18]
or ecx, eax
jne 0x4501cd
cmp dword [ebp + 0xc4], 1
jne 0x4501cd
mov dword [esp + 8], 0
xor esi, esi
mov dword [esp + 4], 0xfffffffe
mov dword [esp], ebp
call sym.__gfortran_generate_error
jmp 0x45026b
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x4503a5
cmp dword [edx + 0x78], 1
je 0x4505f0
mov eax, dword [ebp + 0xc0]
test eax, eax
jne 0x450680
mov eax, dword [ebp + 0x9c]
mov edi, dword [eax + 0x1b8]
mov edx, dword [eax + 4]
test edi, edi
jg 0x4507a4
mov esi, dword [ebx]
cmp dword [eax + 0x1b4], 4
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 0x18], esi
je 0x450591
call sym.__gfortrani_mem_alloc_r
mov edi, dword [ebx]
mov esi, eax
cmp dword [esp + 0x18], edi
ja 0x450787
mov ecx, dword [ebp + 0x9c]
mov ebx, dword [ebp]
xor edx, edx
mov eax, edi
sub dword [ecx + 0xa0], edi
sbb dword [ecx + 0xa4], edx
add edi, dword [ebp + 0xc0]
and bh, 4
jne 0x450424
cmp byte [ecx + 0x1c0], 0
je 0x450430
add dword [ecx + 0x1c8], eax
adc dword [ecx + 0x1cc], edx
xor edx, edx
add dword [ecx + 0xa8], edi
mov eax, esi
adc dword [ecx + 0xac], edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
xor esi, esi
mov dword [esp + 4], 0xfffffffe
mov dword [esp], ebp
call sym.__gfortran_generate_error
mov edi, dword [ebp + 0x9c]
mov ecx, dword [ebx]
jmp 0x45025d
mov eax, dword [esp + 0x50]
test byte [eax + 0xc9], 8
je 0x4502fd
mov dword [esp + 8], str.Comma_in_formatted_numeric_read.
mov ebp, eax
xor esi, esi
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sym.__gfortrani_notify_std
mov dword [ebx], edi
mov ecx, dword [ebp + 0x9c]
mov dword [esp + 0x28], edi
mov eax, dword [ecx + 0xa0]
mov edx, dword [ecx + 0xa4]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], 1
sub eax, edi
sbb edx, esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov eax, edi
lea esi, [esi]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [ebp]
mov dword [ecx + 0xa0], ebx
mov dword [ecx + 0xa4], esi
and dh, 4
jne 0x450515
cmp byte [ecx + 0x1c0], 0
je 0x450529
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
add dword [ecx + 0x1c8], ebx
adc dword [ecx + 0x1cc], esi
mov edx, dword [ecx + 0x19c]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov esi, dword [edx + 0xc]
add ebp, edi
sub esi, ebp
sub esi, ebx
add ebx, eax
add esi, dword [edx]
mov edi, ebx
jmp 0x450430
mov edi, dword [edx + 0x88]
mov esi, dword [edx + 0x8c]
mov ecx, edi
mov dword [esp + 0x28], esi
xor edi, dword [0x13771490]
xor esi, dword [0x13771494]
or esi, edi
jne 0x4501aa
mov eax, ecx
mov dword [edx + 0xa0], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 0xa4], ecx
mov dword [esp + 0x18], ecx
jmp 0x4501b4
call sym.__gfortrani_mem_alloc_r4
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x9c]
mov dword [esp], eax
call sym.__gfortrani_fbuf_alloc
mov edi, dword [ebx]
mov esi, eax
test edi, edi
je 0x4503ed
mov edi, dword [esp + 0x20]
xor eax, eax
mov edx, 0x3f
mov esi, esi
lea edi, [edi]
mov ecx, dword [edi + eax*4]
cmp ecx, 0x100
cmovae ecx, edx
mov byte [esi + eax], cl
mov ecx, dword [ebx]
add eax, 1
cmp eax, ecx
jb 0x4505d0
mov edi, ecx
jmp 0x4503ed
mov dword [esp], ebp
call sym.__gfortrani_hit_eof
jmp 0x4503a5
mov ebp, dword [esp + 0x50]
mov dword [ebx], edi
cmp dword [esp + 0x20], edi
jbe 0x450700
mov eax, dword [ebp + 0xc0]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x450750
mov edx, dword [ebp + 0xc4]
test edi, edi
je 0x450823
mov ecx, dword [ebp + 0x9c]
cmp edx, 1
je 0x4508e0
or byte [ebp + 0xc9], 0x40
mov eax, dword [ecx + 0xa0]
mov edx, dword [ecx + 0xa4]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
sub eax, dword [esp + 0x28]
sbb edx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [ebx]
mov dword [esp + 0x20], 0
jmp 0x4504f0
mov dword [ebx], 0
mov esi, 0x4674d4
mov ecx, dword [ebp + 0x9c]
mov edi, dword [ebp + 0xc0]
jmp 0x450430
mov dword [ebx], 0
mov esi, 0x4674d4
mov ecx, dword [ebp + 0x9c]
mov edi, dword [ebp + 0xc0]
jmp 0x450430
mov ebp, dword [esp + 0x50]
cmp dword [ebp + 0xc4], 1
mov dword [ebp + 0xc0], 1
je 0x4506e0
test byte [ebp + 0xc8], 4
je 0x4506e7
or byte [ebp + 0xc8], 8
cmp eax, 0xd
je 0x450889
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x78], 1
je 0x450954
mov dword [ebx], edi
mov ecx, dword [ebp + 0x9c]
xor esi, esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov eax, dword [ecx + 0xa0]
mov edx, dword [ecx + 0xa4]
mov dword [esp + 0x20], 0
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc0]
sbb edx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov eax, edi
jmp 0x4504f0
mov dword [esp], ebp
xor esi, esi
call sym.__gfortrani_hit_eof
jmp 0x45026b
mov ecx, dword [ebp + 0x9c]
xor edx, edx
mov eax, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edx
mov ebx, dword [ecx + 0xa0]
mov esi, dword [ecx + 0xa4]
mov dword [esp + 0x20], 0
sub ebx, edi
sbb esi, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
jmp 0x4504f0
mov dword [esp], ebp
xor esi, esi
call sym.__gfortrani_hit_eof
mov edi, dword [ebp + 0xc0]
add edi, dword [ebx]
mov ecx, dword [ebp + 0x9c]
jmp 0x450430
cmp dword [eax + 0x1bc], 0xfffffffe
je 0x4503ca
mov dword [eax + 0x1bc], 0xfffffffe
mov eax, dword [edx]
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp], edx
call dword [eax + 8]
mov eax, dword [ebp + 0x9c]
mov edx, dword [eax + 4]
jmp 0x4503ca
cmp dword [edx + 0x1bc], 0xfffffffe
je 0x4502b4
mov dword [edx + 0x1bc], 0xfffffffe
mov dword [esp], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
call sym.__gfortrani_fbuf_seek
mov edx, dword [ebp + 0x9c]
jmp 0x4502b4
cmp edx, 1
je 0x450787
mov ecx, dword [ebp + 0x9c]
cmp dword [ecx + 0x78], 1
je 0x450787
mov edx, dword [ecx + 0xa4]
mov eax, dword [ecx + 0xa0]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 0x88]
mov esi, dword [esp + 0x1c]
xor esi, dword [ecx + 0x8c]
mov dword [esp + 0x18], eax
xor edx, eax
or esi, edx
je 0x450787
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x4504f0
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 8]
jae 0x45092f
mov esi, dword [eax]
mov dword [esp + 0x20], esi
lea esi, [ecx + 1]
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x20]
cmp byte [eax + ecx], 0xa
je 0x450987
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym.__gfortrani_fbuf_seek
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x18], eax
jmp 0x4506f0
cmp dword [ecx + 0x78], 1
je 0x450787
or byte [ebp + 0xc8], 8
jmp 0x450646
mov eax, dword [edx + 0xa0]
mov ecx, edx
mov edx, dword [edx + 0xa4]
xor edi, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x2c], 0
jmp 0x4504f0
mov dword [esp], edx
call sym.__gfortrani_fbuf_getc_refill
cmp eax, 0xa
je 0x450981
mov esi, dword [ebp + 0x9c]
mov dword [esp + 0x18], esi
cmp eax, 0xffffffff
je 0x4506f0
jmp 0x4508b5
mov dword [esp + 8], 0
xor esi, esi
mov dword [esp + 4], 0xfffffffe
mov dword [esp], ebp
call sym.__gfortran_generate_error
mov edi, dword [ebp + 0xc0]
add edi, dword [ebx]
mov ecx, dword [ebp + 0x9c]
jmp 0x450430
mov edx, dword [ebp + 0x9c]
mov dword [ebp + 0xc0], 2
mov dword [esp + 0x18], edx
jmp 0x4506f0