Function at 0x403ab0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x428
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00404550
test eax, eax
jne 0x403ad2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
mov eax, dword [esp + 0x43c]
push 0x418468
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x403aff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
push 2
push 0xffffffffffffffe8
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 1
lea ecx, [esp + 0x4c]
push 0x10
push ecx
call esi
push ebp
push 1
lea edx, [esp + 0x34]
push 4
push edx
call esi
push ebp
push 1
lea eax, [esp + 0x50]
push 4
push eax
call esi
mov ecx, dword [esp + 0x4c]
add esp, 0x3c
mov dword [ebx + 0x12ac], ecx
mov ecx, 4
mov edi, str.SOMDOCUMENT12345
lea esi, [esp + 0x38]
xor edx, edx
push ebp
repe cmpsd dword [esi], dword es:[edi]
je 0x403b6e
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [esp + 0x20]
add esp, 4
cmp ecx, eax
jl 0x403b98
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push 2
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
mov ecx, 0xfffffe58
lea eax, [eax + eax*2]
shl eax, 2
sub ecx, eax
push ecx
push ebp
call esi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 1
lea edx, [esp + 0x4c]
push 0x190
push edx
call edi
add esp, 0x1c
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.004047f0
test eax, eax
jne 0x403c0b
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
mov ecx, dword [esp + 0x1c]
push 2
neg ecx
push ecx
push ebp
call esi
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea edx, [eax + eax*2]
shl edx, 2
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0x10
xor esi, esi
cmp eax, esi
mov dword [ebx + 0x848], eax
push ebp
jne 0x403c58
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
mov ecx, dword [esp + 0x14]
push ecx
push 0x114
push eax
call edi
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
je 0x403c96
mov edx, dword [ebx + 0x848]
push edx
call dword [sym.imp.MSVCRT.dll_free]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
mov ecx, 0x41f288
call fcn.00403140
inc eax
xor edi, edi
mov dword [esp + 0x30], eax
mov eax, dword [0x41f5a0]
mov ecx, 0x41f288
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edi
call fcn.00403150
push eax
mov ecx, 0x41f288
call fcn.004031a0
push eax
push str.CExtractManager::ExtractSom:___d___d_
push 0x418244
call fcn.00401710
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
mov dword [esp + 0x14], edi
jle 0x40444e
xor ebp, ebp
mov ecx, dword [ebx + 0x848]
mov edx, dword [ecx + ebp + 0x110]
lea eax, [ecx + ebp]
push edx
mov eax, dword [eax + 0x108]
push eax
push str.CExtractManager::ExtractSom:___d___d_
push 0x418244
call fcn.00401710
mov ecx, dword [ebx + 0x848]
add esp, 0x10
mov eax, dword [ecx + ebp + 0x10c]
test eax, eax
je 0x40434f
push 0xc
mov ecx, 0x420980
call fcn.0040a5c0
test eax, eax
mov ecx, 0x41f288
jne 0x403eb2
call fcn.004031a0
test eax, eax
jne 0x403d7a
mov ecx, 0x41f288
call fcn.00403150
cmp eax, 0xffffffff
je 0x403d7a
mov edx, dword [ebx + 0x848]
cmp dword [edx + ebp + 0x108], 1
jne 0x40434f
mov ecx, 0x41f288
call fcn.004031a0
test eax, eax
jne 0x403e7f
mov ecx, 0x41f288
call fcn.00403150
cmp eax, 0xffffffff
jne 0x403e7f
mov eax, dword [ebx + 0x848]
mov eax, dword [eax + ebp + 0x108]
cmp eax, 2
je 0x403e7f
cmp eax, 1
je 0x403e7f
push edi
mov ecx, ebx
call fcn.00405340
test eax, eax
je 0x40436b
mov ecx, dword [ebx + 0x848]
add ecx, ebp
mov eax, dword [ecx + 0x110]
test eax, eax
je 0x403e48
cmp dword [esp + 0x28], eax
je 0x403e03
lea edx, [edi + 1]
push edx
push eax
push ecx
push str.CExtractManager::ExtractSom:_11___s__nRLcId_____d__no._d
push 0x418244
call fcn.00401710
add esp, 0x14
jmp 0x40434f
cmp eax, 5
jl 0x403e48
push eax
push ecx
push str.CExtractManager::ExtractSom:_11_Lang___s____d_
push 0x418244
call fcn.00401710
mov eax, dword [ebx + 0x848]
add esp, 0x10
cmp dword [eax + ebp + 0x10c], 5
jne 0x403e48
push 1
push str.CExtractManager::ExtractSom:_11_LangSds___d_
push 0x418244
mov dword [esp + 0x2c], 1
call fcn.00401710
add esp, 0xc
mov ecx, dword [ebx + 0x848]
lea esi, [ebx + 0x11a8]
push esi
mov edx, dword [ecx + ebp + 0x108]
mov ecx, 0x41f5b8
push edx
call fcn.004055f0
push esi
push str.CExtractManager::ExtractSom:____SetExtractFileName___s_
push 0x418244
call fcn.00401710
add esp, 0xc
jmp 0x40434f
push 0xb
mov ecx, 0x420980
call fcn.0040a5c0
cmp eax, 1
jne 0x403ef2
mov eax, dword [ebx + 0x848]
mov eax, dword [eax + ebp + 0x108]
cmp eax, 7
je 0x403ef2
cmp eax, 8
je 0x403ef2
cmp eax, 9
jne 0x40434f
jmp 0x403ef2
call fcn.004031a0
test eax, eax
jne 0x403ef2
mov ecx, 0x41f288
call fcn.00403150
cmp eax, 0xffffffff
je 0x403ef2
mov ecx, dword [ebx + 0x848]
mov eax, dword [ecx + ebp + 0x108]
cmp eax, 7
je 0x40434f
cmp eax, 8
je 0x40434f
cmp eax, 9
je 0x40434f
mov edx, dword [ebx + 0x848]
mov eax, dword [edx + ebp + 0x110]
lea ecx, [edx + ebp]
test eax, eax
je 0x404052
mov esi, dword [esp + 0x28]
cmp esi, 5
jl 0x4040ba
cmp eax, 3
jne 0x4040ba
lea edx, [edi + 1]
push edx
push eax
push ecx
push str.CExtractManager::ExtractSom:_22_LangEng___s____d__no._d
push 0x418244
call fcn.00401710
add esp, 0x14
mov eax, dword [ebx + 0x848]
lea ecx, [eax + ebp]
mov eax, dword [eax + ebp + 0x110]
cmp esi, eax
jne 0x404052
cmp eax, 5
jl 0x404052
lea esi, [edi + 1]
push esi
push eax
push ecx
push str.CExtractManager::ExtractSom:_22_Lang___s____d__no._d
push 0x418244
call fcn.00401710
mov ecx, dword [ebx + 0x848]
add esp, 0x14
cmp dword [ecx + ebp + 0x10c], 5
jne 0x403f9e
push esi
push 1
push str.CExtractManager::ExtractSom:_22_LangSds___d__no._d
push 0x418244
mov dword [esp + 0x30], 1
call fcn.00401710
add esp, 0x10
mov edx, dword [ebx + 0x848]
mov edi, 4
mov ecx, dword [edx + ebp + 0x108]
lea eax, [edx + ebp]
cmp ecx, 8
jne 0x403fdd
cmp dword [eax + 0x10c], edi
jne 0x403fdd
push esi
push 1
push str.CExtractManager::ExtractSom:_22_LangTempString___d__no._d
push 0x418244
mov dword [esp + 0x34], 1
call fcn.00401710
add esp, 0x10
mov eax, dword [ebx + 0x848]
add eax, ebp
mov ecx, dword [eax + 0x108]
test ecx, ecx
jne 0x404014
cmp dword [eax + 0x10c], edi
jne 0x404014
push esi
push 1
push str.CExtractManager::ExtractSom:_22_LangTempOle___d__no._d
push 0x418244
mov dword [esp + 0x3c], 1
call fcn.00401710
add esp, 0x10
mov ecx, dword [ebx + 0x848]
lea eax, [ecx + ebp]
mov ecx, dword [ecx + ebp + 0x108]
cmp ecx, 7
jne 0x40404e
cmp dword [eax + 0x10c], edi
jne 0x40404e
push esi
push 0
push str.CExtractManager::ExtractSom:_22_LangTempResource___d__no._d
push 0x418244
mov dword [esp + 0x3c], 1
call fcn.00401710
add esp, 0x10
mov edi, dword [esp + 0x14]
mov edx, dword [ebx + 0x848]
mov esi, 1
cmp dword [edx + ebp + 0x108], esi
jne 0x4040e2
push 0xc
mov ecx, 0x420980
call fcn.0040a5c0
cmp eax, esi
jne 0x4040e2
push edi
mov ecx, ebx
call fcn.00405340
test eax, eax
je 0x40414d
lea edi, [ebx + 0x11a8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x728]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
push str.CExtractManager::ExtractSom:_Its_OLE_Doc__s_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40413c
cmp dword [esp + 0x30], eax
je 0x403f38
lea edx, [edi + 1]
push edx
push eax
push esi
push ecx
push str.CExtractManager::ExtractSom:_22___s__nLcId___d______d__no._d
push 0x418244
call fcn.00401710
add esp, 0x18
jmp 0x40434f
mov edx, dword [ebx + 0x848]
cmp dword [edx + ebp + 0x108], esi
jne 0x40416a
push 0xb
mov ecx, 0x420980
call fcn.0040a5c0
cmp eax, esi
jne 0x40416a
push edi
mov ecx, ebx
call fcn.00405340
test eax, eax
je 0x40414d
lea edi, [ebx + 0x11a8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x728]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
push str.CExtractManager::ExtractSom:_Its_SIMPLE_SOM___s_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x418244
call fcn.00401710
mov edi, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x10]
push edi
push ecx
push str.CExtractManager::ExtractSom:_nFileCount:__d_i:__d
push 0x418244
call fcn.00401710
add esp, 0x10
jmp 0x40434f
push str.CExtractManager::ExtractSom:_GetPackFileName...___
push 0x418244
call fcn.00401710
add esp, 8
mov ecx, ebx
push edi
call fcn.00405340
test eax, eax
je 0x4043a4
lea esi, [ebx + 0x11a8]
push 0x418464
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x18]
push edx
push eax
push str.CExtractManager::ExtractSom:_nFileCount:__d_i:__d
push 0x418244
mov dword [esp + 0x4c], edi
call fcn.00401710
add esp, 0x18
test edi, edi
jne 0x4041f6
mov ecx, dword [ebx + 0x848]
push esi
mov edx, dword [ecx + ebp + 0x108]
mov ecx, 0x41f5b8
push edx
call fcn.004055f0
push edi
push esi
push str.CExtractManager::ExtractSom:__Skip_FileName___s__0x_
push 0x418244
call fcn.00401710
add esp, 0x10
jmp 0x40434b
mov eax, dword [ebx + 0x848]
mov edx, dword [esp + 0x18]
push 0
mov ecx, dword [eax + ebp + 0x100]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [ebx + 0x848]
mov ecx, dword [eax + ebp + 0x100]
push ecx
push str.CExtractManager::ExtractSom:_nStart___0x_
push 0x418244
call fcn.00401710
mov edx, dword [ebx + 0x848]
add esp, 0x18
mov ecx, dword [edx + ebp + 0x108]
lea eax, [edx + ebp]
cmp ecx, 1
je 0x4043dd
mov eax, dword [eax + 0x104]
push eax
push str.CExtractManager::ExtractSom:_size___d_
push 0x418244
call fcn.00401710
mov ecx, dword [ebx + 0x848]
mov edx, dword [ecx + ebp + 0x104]
inc edx
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
mov eax, dword [ebx + 0x848]
mov edi, esi
mov ecx, dword [eax + ebp + 0x104]
xor eax, eax
inc ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x848]
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [ecx + ebp + 0x104]
push edx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push eax
push str.CExtractManager::ExtractSom:_read___d_
push 0x418244
mov dword [esp + 0x48], eax
call fcn.00401710
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x48]
push edi
push eax
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push eax
push str.CExtractManager::ExtractSom:_write___d_
push 0x418244
mov dword [esp + 0x64], eax
call fcn.00401710
add esp, 0x48
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test esi, esi
je 0x404309
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [ebx + 0x848]
lea esi, [ebx + 0x11a8]
push esi
mov edx, dword [ecx + ebp + 0x108]
mov ecx, 0x41f5b8
push edx
call fcn.004055f0
push esi
push str.CExtractManager::ExtractSom:_PackFileName___s_
push 0x418244
call fcn.00401710
push esi
push str.CExtractManager::ExtractSom:_Extract___s_
push 0x418244
call fcn.00401710
add esp, 0x18
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc edi
add ebp, 0x114
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x403cf6
jmp 0x404420
push str.CExtractManager::ExtractSom:_____GetPackFileName__Fail_
push 0x418244
call fcn.00401710
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebx + 0x848]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
push str.CExtractManager::ExtractSom:_GetPackFileName__Fail_
push 0x418244
call fcn.00401710
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebx + 0x848]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
lea edi, [ebx + 0x11a8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x728]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
push str.CExtractManager::ExtractSom:_ExtractDoc__DUE_TO___s
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x418244
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401710
add esp, 0x10
cmp dword [esp + 0x20], 1
jne 0x404446
push str.CExtractManager::ExtractSom:_TRUE__bLangSds
push 0x418244
call fcn.00401710
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
add esp, 8
jmp 0x4044da
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push 0xc
mov ecx, 0x420980
call fcn.0040a5c0
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
push eax
push ecx
push edi
push str.CExtractManager::ExtractSom:_FALSE__bLangSds_nRLcId:__d__nLcId:__d__OLE:__d_
push 0x418244
call fcn.00401710
add esp, 0x14
cmp edi, 5
jl 0x4044c8
push 0xc
mov ecx, 0x420980
call fcn.0040a5c0
test eax, eax
jne 0x4044c8
push str.CExtractManager::ExtractSom:_FAIL..
push 0x418244
call fcn.00401710
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
push 0x10
push str.SoftCamp
push str.Unable_to_open_this_document_in_this_system
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x428
ret 4
push str.CExtractManager::ExtractSom:_SUCCESS..
push 0x418244
call fcn.00401710
add esp, 8
cmp esi, 1
jne 0x4044f1
push str.CExtractManager::ExtractSom:_TRUE__bLangTempString
push 0x418244
call fcn.00401710
add esp, 8
cmp dword [esp + 0x2c], 1
jne 0x40450a
push str.CExtractManager::ExtractSom:_TRUE__bLangTempString
push 0x418244
call fcn.00401710
add esp, 8
mov edx, dword [esp + 0x20]
push esi
push esi
push edx
push str.CExtractManager::ExtractSom:_bLangSds___d__bLangTempString___d__bLangTempString___d_
push 0x418244
call fcn.00401710
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
push str.CExtractManager::ExtractSom:_Extract__Success_
push 0x418244
call fcn.00401710
add esp, 0x20
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4