Function at 0x40f8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x47f228]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor bl, bl
push 0x46d5cc
push 0x480200
mov dword [ebp - 0xa8], esi
call fcn.004265b5
mov edi, eax
add esp, 8
test edi, edi
jne 0x40f91e
push eax
push 0xe
push 0x2e
push dword [0x482a94]
call fcn.00413000
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret
push edi
push 6
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00445e11
mov edx, str.Org_01
lea ecx, [ebp - 0xc]
mov eax, dword [ecx]
add esp, 0x10
cmp eax, dword [edx]
jne 0x40f949
movzx eax, word [ecx + 4]
cmp ax, word [edx + 4]
jne 0x40f949
mov bl, 1
mov edx, str.Org_02
lea ecx, [ebp - 0xc]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40f963
movzx eax, word [ecx + 4]
cmp ax, word [edx + 4]
jne 0x40f963
mov bl, 2
mov edx, str.Org_03
lea ecx, [ebp - 0xc]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40f9e6
movzx eax, word [ecx + 4]
cmp ax, word [edx + 4]
jne 0x40f9e6
mov bl, 2
push edi
push 1
lea eax, [ebp - 0x98]
push 0x6c
push eax
call fcn.00445e11
mov ax, word [ebp - 0x98]
lea edx, [esi + 0x12]
mov word [esi], ax
lea ecx, [ebp - 0x89]
movzx eax, byte [ebp - 0x96]
add esp, 0x10
mov byte [esi + 2], al
movzx eax, byte [ebp - 0x95]
mov byte [esi + 3], al
mov eax, dword [ebp - 0x94]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x90]
mov dword [esi + 0xc], eax
mov esi, 0x10
mov dword [ebp - 0xac], edx
mov ax, word [ecx - 3]
mov word [edx - 2], ax
cmp bl, 1
jne 0x40fa17
xor al, al
jmp 0x40fa19
test bl, bl
jne 0x40f97d
push edi
call fcn.00426273
push 0
push 0xe
push 0xc
push dword [0x482a94]
call fcn.00413000
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a55
mov esp, ebp
pop ebp
ret
mov al, byte [ecx]
mov byte [edx + 1], al
mov al, byte [ecx - 1]
add ecx, 6
mov byte [edx], al
add edx, 0xc
sub esi, 1
jne 0x40f9d5
mov ebx, dword [ebp - 0xa8]
lea esi, [ebp - 0x88]
add ebx, 0x14
mov eax, 0x10
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], eax
nop dword [eax]
cmp word [esi], 0
jne 0x40fa62
mov dword [ebx + 4], 0
jmp 0x40fbf1
mov eax, dword [ebx]
mov edx, 1
mov dword [ebx + 4], eax
lea ecx, [eax + 0x10]
mov dword [eax], 0
mov dword [eax + 4], ecx
mov eax, edx
cmp ax, word [esi]
jae 0x40fa95
nop
lea eax, [ecx - 0x10]
inc edx
mov dword [ecx], eax
lea eax, [ecx + 0x10]
mov dword [ecx + 4], eax
mov ecx, eax
movzx eax, word [esi]
cmp edx, eax
jl 0x40fa80
mov dword [ecx - 0xc], 0
xor ecx, ecx
movzx eax, word [esi]
mov ebx, dword [ebx]
mov dword [ebp - 0x9c], 0
cmp cx, ax
jae 0x40fae2
add ebx, 8
push edi
push 1
push 4
push ebx
call fcn.00445e11
mov edx, dword [ebp - 0x9c]
add esp, 0x10
movzx eax, word [esi]
inc edx
add ebx, 0x10
mov dword [ebp - 0x9c], edx
cmp edx, eax
jl 0x40fab5
mov ebx, dword [ebp - 0xa0]
mov ebx, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x9c], 0
cmp cx, ax
jae 0x40fb23
add ebx, 0xd
push edi
push 1
push 1
push ebx
call fcn.00445e11
mov edx, dword [ebp - 0x9c]
add esp, 0x10
movzx eax, word [esi]
inc edx
add ebx, 0x10
mov dword [ebp - 0x9c], edx
cmp edx, eax
jl 0x40faf6
mov ecx, dword [ebp - 0xa0]
mov ebx, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x9c], 0
cmp cx, ax
jae 0x40fb64
add ebx, 0xc
push edi
push 1
push 1
push ebx
call fcn.00445e11
mov edx, dword [ebp - 0x9c]
add esp, 0x10
movzx eax, word [esi]
inc edx
add ebx, 0x10
mov dword [ebp - 0x9c], edx
cmp edx, eax
jl 0x40fb37
mov ecx, dword [ebp - 0xa0]
mov ebx, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x9c], 0
cmp cx, ax
jae 0x40fba5
add ebx, 0xe
push edi
push 1
push 1
push ebx
call fcn.00445e11
mov edx, dword [ebp - 0x9c]
add esp, 0x10
movzx eax, word [esi]
inc edx
add ebx, 0x10
mov dword [ebp - 0x9c], edx
cmp edx, eax
jl 0x40fb78
mov ecx, dword [ebp - 0xa0]
mov ebx, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x9c], 0
cmp cx, ax
jae 0x40fbe5
add ebx, 0xf
nop dword [eax]
push edi
push 1
push 1
push ebx
call fcn.00445e11
mov ecx, dword [ebp - 0x9c]
add esp, 0x10
movzx eax, word [esi]
inc ecx
add ebx, 0x10
mov dword [ebp - 0x9c], ecx
cmp ecx, eax
jl 0x40fbc0
mov eax, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xa0]
add ebx, 0xc
add esi, 6
sub eax, 1
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], eax
jne 0x40fa50
push edi
call fcn.00426273
mov ebx, dword [ebp - 0xac]
add esp, 4
xor esi, esi
nop dword [eax]
movzx eax, byte [ebx + 1]
push eax
movzx eax, byte [ebx]
push eax
push esi
call fcn.00414260
inc esi
lea ebx, [ebx + 0xc]
add esp, 0xc
cmp esi, 8
jl 0x40fc20
mov ebx, dword [ebp - 0xa8]
mov esi, 8
lea edi, [ebx + 0x72]
nop dword [eax]
lea eax, [esi - 8]
push eax
movzx eax, byte [edi]
push dword [eax*4 + 0x47e370]
call fcn.00413d40
inc esi
lea edi, [edi + 0xc]
add esp, 8
cmp esi, 0x10
jl 0x40fc50
push 0
mov ecx, ebx
call fcn.00411630
push 0
mov ecx, 0x482aa0
call fcn.004136c0
push 0xa
lea eax, [ebp - 0x2c]
push eax
movzx eax, word [ebx]
push eax
call fcn.00446823
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x2c]
add esp, 0xc
push eax
push 0x3ec
push dword [0x482ad0]
call esi
push 0x46d364
push 0x3ee
push dword [0x482ad0]
call esi
push 0x46d364
push 0x3ed
push dword [0x482ad0]
call esi
movzx edx, byte [ebx + 3]
mov ecx, 0x482aa0
movzx eax, byte [ebx + 2]
imul edx, eax
shl edx, 8
push edx
call fcn.00413220
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
call fcn.0040a900
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
call fcn.0040aa70
push 0x480200
call fcn.00412750
add esp, 0x14
cmp dword [0x47fe80], 0
je 0x40fd23
call fcn.00411810
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418a55
mov esp, ebp
pop ebp
ret