Function at 0x436850
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43f2b5
push eax
mov eax, 0x192d8
mov dword fs:[0], esp
call fcn.0043b050
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor eax, eax
mov ecx, 0x63ff
lea edi, [esp + 0x2e9]
mov dword [esp + 0x192f0], eax
mov dword [esp + 0x50], eax
mov byte [esp + 0x2e8], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x79]
mov byte [esp + 0x78], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x192f0], 1
call sub.MFC42.DLL_CString::CString_2
push 0x44a754
lea ecx, [esp + 0x18]
mov byte [esp + 0x192f4], 2
call fcn.0043abe8
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xe9]
mov byte [esp + 0xe8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x192f8]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x192f4], 3
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x14]
push 0x44a754
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x436dfb
lea esi, [ebx + 0x1d68]
lea edi, [ebx + 0x1d98]
push 0x7c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
lea edx, [esp + 0x48]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x192f4], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x48]
mov byte [esp + 0x192f0], 3
call sub.MFC42.DLL_CString::CString
push 0x2a
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x192f4], 5
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x4c]
mov byte [esp + 0x192f0], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4369eb
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x4369eb
lea ecx, [eax + 4]
cmp ecx, edx
mov dword [esi + 0x1c], ecx
jne 0x436b7b
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00422380
add esp, 8
mov ecx, esi
call fcn.00421ea0
jmp 0x436b89
push 0x1000
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esi + 0x2c]
add esp, 4
test eax, eax
jne 0x436a7a
mov ecx, esi
mov dword [esi + 0x28], 2
call fcn.00422280
mov eax, dword [esi + 0x24]
mov dword [eax + 4], ebp
add eax, 4
add ebp, 0x800
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x98]
add eax, 4
push eax
push ebp
call fcn.00409c50
mov ecx, dword [esp + 0x9c]
lea eax, [esi + 4]
mov edx, dword [esp + 0xa0]
mov ebp, eax
mov eax, dword [esp + 0x98]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov edx, dword [esp + 0xa4]
mov dword [ebp + 0xc], edx
lea ebp, [esi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xa0]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
jmp 0x436b72
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
lea ecx, [edx + ecx*4 - 4]
cmp eax, ecx
jae 0x436ad4
add eax, 4
lea ecx, [esp + 0xc8]
mov dword [esi + 0x20], eax
mov dword [eax], ebp
mov eax, dword [esi + 0x20]
push eax
push ebp
call fcn.00409c50
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
lea edx, [esi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0xd0]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xd4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x436b72
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov ecx, esi
sar eax, 2
inc eax
mov dword [esp + 0x1c], eax
lea edx, [eax + eax]
push edx
call fcn.004222a0
mov ecx, dword [esp + 0x1c]
push eax
lea ecx, [eax + ecx*4]
mov dword [esp + 0x20], ecx
mov dword [ecx], ebp
mov ecx, dword [esi + 0xc]
push ecx
lea ecx, [esp + 0xe0]
call fcn.00409c50
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
lea edx, [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xe0]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xe4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x1c]
push edx
push ebp
lea ecx, [esp + 0xc0]
call fcn.00409c50
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
lea eax, [esi + 0x14]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0xc0]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xc4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x1c]
lea ecx, [eax + 4]
mov dword [esi + 0x1c], ecx
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00422380
add esp, 8
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x18]
inc ecx
push 0x2a
mov dword [esi + 0x2c], ecx
mov ebp, dword [eax - 8]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find_1
sub ebp, eax
lea ecx, [esp + 0x40]
dec ebp
push ebp
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x192f4], 6
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x192f0], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [edi + 0x2c]
add esp, 4
test ecx, ecx
mov dword [esp + 0x3c], eax
je 0x436c25
mov ecx, dword [edi + 0x1c]
mov ebp, dword [edi + 0x18]
cmp ecx, ebp
je 0x436c25
lea edx, [ecx + 1]
cmp edx, ebp
mov dword [edi + 0x1c], edx
jne 0x436c16
test ecx, ecx
je 0x436c0a
mov byte [ecx], al
mov ecx, edi
call fcn.00421ea0
jmp 0x436d92
test ecx, ecx
je 0x436d92
mov byte [ecx], al
jmp 0x436d92
push 0x1000
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [edi + 0x2c]
add esp, 4
test eax, eax
jne 0x436cb4
push 8
mov dword [edi + 0x28], 2
call sub.MFC42.DLL_operatornew
mov dword [edi + 0x24], eax
mov dword [eax + 4], ebp
mov eax, dword [edi + 0x24]
add esp, 4
add eax, 4
add ebp, 0x800
push eax
push ebp
lea ecx, [esp + 0xb0]
call fcn.00409c50
mov ecx, dword [esp + 0xac]
lea eax, [edi + 4]
mov edx, dword [esp + 0xb0]
mov ebp, eax
mov eax, dword [esp + 0xa8]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov edx, dword [esp + 0xb4]
mov dword [ebp + 0xc], edx
lea ebp, [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0xb0]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
jmp 0x436d7f
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
lea ecx, [edx + ecx*4 - 4]
cmp eax, ecx
jae 0x436cff
add eax, 4
lea ecx, [esp + 0x64]
mov dword [edi + 0x20], eax
mov dword [eax], ebp
mov eax, dword [edi + 0x20]
push eax
push ebp
call fcn.00409c50
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
lea edx, [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x436d7f
mov ecx, dword [edi + 0x10]
sub eax, ecx
mov ecx, edi
sar eax, 2
inc eax
mov dword [esp + 0x1c], eax
lea edx, [eax + eax]
push edx
call fcn.004222a0
mov ecx, dword [esp + 0x1c]
push eax
lea ecx, [eax + ecx*4]
mov dword [esp + 0x20], ecx
mov dword [ecx], ebp
mov ecx, dword [edi + 0xc]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00409c50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x1c]
push edx
push ebp
lea ecx, [esp + 0x5c]
call fcn.00409c50
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
lea eax, [edi + 0x14]
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x1c]
test eax, eax
lea ecx, [eax + 1]
mov dword [edi + 0x1c], ecx
je 0x436d92
mov dl, byte [esp + 0x3c]
mov byte [eax], dl
mov ecx, dword [edi + 0x2c]
mov eax, dword [esp + 0x14]
inc ecx
push 0x7c
mov dword [edi + 0x2c], ecx
mov ebp, dword [eax - 8]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
sub ebp, eax
lea ecx, [esp + 0x38]
dec ebp
push ebp
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x192f4], 7
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x192f0], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x44a754
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x436938
lea eax, [ebx + 0x1d6c]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 8]
push eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x10]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
mov ebp, dword [edx - 8]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, ebp
mov esi, eax
mov eax, ecx
lea edi, [esp + 0xe8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x448b20
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xec]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 2
push 0
push esi
mov dword [esp + 0x5c], esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, eax
mov eax, dword [esp + 0x19314]
add esp, 0x18
cmp eax, 0x19000
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
jl 0x436eac
mov dword [esp + 0x44], 0x19000
mov edx, dword [esp + 0x44]
lea ebp, [edx - 0x15]
cmp ecx, ebp
jle 0x437025
mov eax, ecx
cdq
idiv ebp
mov dword [esp + 0x20], eax
mov eax, ecx
cdq
idiv ebp
test edx, edx
je 0x436ed1
inc dword [esp + 0x20]
mov eax, 1
mov cx, word [esp + 0x20]
mov word [esp + 0x26], ax
mov word [esp + 0x2a], ax
mov dword [esp + 0x4c], eax
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
xor eax, eax
mov word [esp + 0x2c], cx
mov ecx, 0x6400
lea edi, [esp + 0x2e8]
push eax
push eax
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x48], ebp
mov word [esp + 0x30], 0xaaaa
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
lea edx, [esp + 0x310]
push ebp
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, 0x14
lea eax, [ebp + 0x14]
add esp, 0x1c
xor cl, cl
cmp eax, edx
jle 0x436f4b
add cl, byte [esp + edx + 0x2e8]
inc edx
cmp edx, eax
jl 0x436f3f
mov byte [esp + eax + 0x2e8], cl
inc eax
lea edx, [ebp + 1]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov ecx, 5
lea esi, [esp + 0x24]
lea edi, [esp + 0x2e8]
mov dword [esp + 0x34], edx
mov word [esp + 0x28], 0x700
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebx + 0x28]
add esp, 4
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edx, dword [esp + 0x38]
mov ecx, dword [ebx + 0x28]
push edx
lea edx, [esp + 0x2ec]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
lea ebp, [ebp + ebp*4]
lea eax, [ebp + ebp*4]
shl eax, 2
cdq
idiv dword [esp + 0x40]
push eax
mov eax, dword [ebx + 0x20]
push eax
push 0x472
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [ebx + 4]
test eax, eax
jne 0x437039
lea ecx, [esp + 0x14]
mov byte [esp + 0x192f0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x192f0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x192f0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x192f8]
mov dword [esp + 0x192f0], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x43761a
mov eax, 1
mov ebp, ecx
mov dword [esp + 0x20], eax
jmp 0x436ed6
mov ebp, dword [esp + 0x1c]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x78]
push 0x3e8
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x28]
push 0x14
stosw word es:[edi], ax
mov edx, dword [ecx]
lea eax, [esp + 0x80]
push eax
call dword [edx + 0x10]
cmp eax, 0x14
je 0x43708c
cmp ebp, 3
jg 0x437635
mov eax, dword [esp + 0x38]
mov ecx, dword [ebx + 0x28]
push eax
lea eax, [esp + 0x2ec]
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
inc ebp
mov dword [esp + 0x1c], ebp
jmp 0x43741f
mov ecx, 5
lea esi, [esp + 0x78]
lea edi, [esp + 0x64]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea edi, [esp + 0x78]
mov esi, dword [esp + 0x74]
push 0x3e8
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x28]
push esi
stosw word es:[edi], ax
mov edx, dword [ecx]
lea eax, [esp + 0x80]
push eax
call dword [edx + 0x10]
mov ecx, esi
lea esi, [esp + 0x78]
mov edx, ecx
lea edi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [esp + 0x50], 0xff
jne 0x43710d
cmp ebp, 3
jg 0x437635
mov edx, dword [esp + 0x38]
mov ecx, dword [ebx + 0x28]
push edx
lea edx, [esp + 0x2ec]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
inc ebp
mov dword [esp + 0x1c], ebp
jmp 0x43741f
mov ax, word [esp + 0x6c]
cmp ax, word [esp + 0x6e]
je 0x437242
lea ecx, [esp + 0xe8]
push 0x448b20
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [esp + 0x44]
mov esi, eax
push 0
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
sub eax, edi
add esp, 0x14
lea ebp, [edx - 0x15]
cmp eax, ebp
jg 0x437156
mov ebp, eax
xor eax, eax
mov ecx, 0x6400
mov dword [esp + 0x24], eax
lea edi, [esp + 0x2e8]
mov dword [esp + 0x28], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
rep stosd dword es:[edi], eax
mov edi, 1
lea ecx, [esp + 0x300]
push edi
push ebp
push ecx
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
add esp, 0x14
add edx, ebp
inc eax
mov dword [esp + 0x3c], edx
mov dx, word [esp + 0x20]
mov dword [esp + 0x4c], eax
mov word [esp + 0x2e], ax
mov word [esp + 0x26], di
mov word [esp + 0x2a], di
mov word [esp + 0x30], di
lea eax, [ebp + 1]
mov ecx, 5
lea esi, [esp + 0x24]
lea edi, [esp + 0x2e8]
mov word [esp + 0x24], 0xaaaa
mov word [esp + 0x28], 0x700
mov word [esp + 0x2c], dx
mov dword [esp + 0x34], eax
rep movsd dword es:[edi], dword [esi]
mov edx, 0x14
lea ecx, [ebp + 0x14]
xor al, al
cmp ecx, edx
jle 0x43720c
add al, byte [esp + edx + 0x2e8]
inc edx
cmp edx, ecx
jl 0x437200
mov ecx, dword [ebx + 0x28]
mov byte [esp + ebp + 0x2fc], al
add ebp, 0x15
mov edx, dword [ecx]
mov dword [esp + 0x38], ebp
call dword [edx + 0x1c]
mov ecx, dword [ebx + 0x28]
lea edx, [esp + 0x2e8]
push ebp
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esp + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
jmp 0x437403
mov ecx, ebx
call fcn.0042d930
test eax, eax
je 0x43742a
lea eax, [ebx + 0x1d6c]
mov edx, eax
mov eax, dword [edx]
mov dword [esp + 0x54], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x10]
mov eax, dword [edx + 8]
push eax
mov edx, dword [edx + 0xc]
mov dword [esp + 0x64], edx
call sub.MFC42.DLL_CString::operator_2
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xe8]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov ebp, dword [eax - 8]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, ebp
mov esi, eax
mov edx, ecx
lea edi, [esp + 0xe8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xe8]
and ecx, 3
push 0x448b20
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 2
push 0
push esi
mov dword [esp + 0x5c], esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, eax
mov eax, dword [esp + 0x19314]
add esp, 0x18
cmp eax, 0x19000
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
jl 0x437303
mov dword [esp + 0x44], 0x19000
mov edx, dword [esp + 0x44]
lea ebp, [edx - 0x15]
cmp ecx, ebp
jle 0x437509
mov eax, ecx
cdq
idiv ebp
mov dword [esp + 0x20], eax
mov eax, ecx
cdq
idiv ebp
test edx, edx
je 0x437328
inc dword [esp + 0x20]
mov eax, 1
mov cx, word [esp + 0x20]
mov dword [esp + 0x4c], eax
mov word [esp + 0x26], ax
mov word [esp + 0x2a], ax
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
xor eax, eax
mov word [esp + 0x2c], cx
mov ecx, 0x6400
lea edi, [esp + 0x2e8]
push eax
push eax
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x48], ebp
mov word [esp + 0x30], 0xaaaa
mov word [esp + 0x34], 0x700
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 1
lea edx, [esp + 0x310]
push ebp
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, 0x14
lea ecx, [ebp + 0x14]
add esp, 0x1c
xor al, al
cmp ecx, edx
jle 0x4373a9
add al, byte [esp + edx + 0x2e8]
inc edx
cmp edx, ecx
jl 0x43739d
lea ecx, [ebp + 1]
mov byte [esp + ebp + 0x2fc], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov ecx, 5
lea esi, [esp + 0x24]
lea edi, [esp + 0x2e8]
lea edx, [ebp + 0x15]
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x3c], edx
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebx + 0x28]
add esp, 4
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edx, dword [esp + 0x38]
mov ecx, dword [ebx + 0x28]
push edx
lea edx, [esp + 0x2ec]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
lea ebp, [ebp + ebp*4]
lea eax, [ebp + ebp*4]
shl eax, 2
cdq
idiv dword [esp + 0x40]
push eax
mov eax, dword [ebx + 0x20]
push eax
push 0x472
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x437035
xor edx, edx
mov ecx, 0x6400
mov dword [esp + 0x24], edx
xor eax, eax
lea edi, [esp + 0x2e8]
mov dword [esp + 0x28], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], edx
mov eax, 1
mov dword [esp + 0x30], edx
mov word [esp + 0x26], ax
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], ax
xor eax, eax
mov dword [esp + 0x34], edx
mov ecx, 5
lea esi, [esp + 0x24]
lea edi, [esp + 0x2e8]
mov word [esp + 0x24], 0xaaaa
mov word [esp + 0x28], 0x800
mov word [esp + 0x30], ax
mov dword [esp + 0x34], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebx + 0x28]
lea eax, [esp + 0x2e8]
push 0x14
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
xor ebp, ebp
mov eax, dword [ebx + 4]
test eax, eax
jne 0x437519
lea ecx, [esp + 0x14]
mov byte [esp + 0x192f0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x192f0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x192f0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x192f8]
mov dword [esp + 0x192f0], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x43761a
mov eax, 1
mov ebp, ecx
mov dword [esp + 0x20], eax
jmp 0x43732d
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x78]
push 0x1f4
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x28]
push 0x14
stosw word es:[edi], ax
mov edx, dword [ecx]
lea eax, [esp + 0x80]
push eax
call dword [edx + 0x10]
cmp eax, 0x14
je 0x43754e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4375c5
mov eax, dword [esp + 0x88]
mov ecx, 5
lea esi, [esp + 0x78]
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x28]
push 0x3e8
push eax
lea eax, [esp + 0x80]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x74]
lea esi, [esp + 0x78]
mov edx, ecx
lea edi, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [esp + 0x50], 0xff
jne 0x437683
cmp ebp, 3
jg 0x437635
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebx + 0x28]
lea eax, [esp + 0x2e8]
push 0x14
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
inc ebp
mov eax, dword [ebx + 4]
test eax, eax
jne 0x437519
lea ecx, [esp + 0x14]
mov byte [esp + 0x192f0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x192f0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x192f0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x192f8]
mov dword [esp + 0x192f0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x192e8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x192e4
ret 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x192f0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x192f0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x192f0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x192f8]
mov dword [esp + 0x192f0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x43761a
lea ecx, [esp + 0x14]
mov byte [esp + 0x192f0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x192f0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x192f0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x192f8]
mov dword [esp + 0x192f0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x43761a