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

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x467fd0]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
push ebx
push esi
mov esi, dword [ebp + 0x1d4]
mov ebx, ecx
push edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x6c], esi
call fcn.0040537d
push esi
mov ecx, ebx
call fcn.00404329
push 7
pop ecx
xor eax, eax
mov byte [ebp + 0x1a8], 0
lea edi, [ebp + 0x1a9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1ff
stosb byte es:[edi], al
lea eax, [ebp - 0x57]
push 0
push eax
mov byte [ebp - 0x58], 0
call fcn.00432ab0
push 0x44ca70
push esi
call fcn.004336f3
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x78], esi
test esi, esi
jne 0x4057b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x6c]
push str.CExtractManager::ExtractSom:_fopen_error__s___d_
push 0x44c95c
push 0x46afb0
call fcn.00401ac3
add esp, 0x14
xor eax, eax
jmp 0x406061
and dword [ebp - 0x68], 0
push 2
push 0xffffffffffffffe8
push esi
call fcn.004356f9
push esi
xor edi, edi
inc edi
push edi
lea eax, [ebp + 0x1a8]
push 0x10
push eax
call fcn.00435a1e
push esi
push edi
lea eax, [ebp - 0x68]
push 4
push eax
call fcn.00435a1e
push esi
push edi
lea eax, [ebp - 0x74]
push 4
push eax
call fcn.00435a1e
push 0x10
lea eax, [ebp + 0x1a8]
push str.SOMDOCUMENT12345
push eax
call fcn.00433fef
add esp, 0x48
push esi
test eax, eax
je 0x40582b
call fcn.004335b1
mov dword [esp], str.CExtractManager::ExtractSom:_id_error
push 0x44c95c
push 0x46afb0
call fcn.00401ac3
add esp, 0xc
jmp 0x4057ae
call fcn.00435dee
pop ecx
cmp dword [ebp - 0x74], eax
jb 0x405862
push esi
call fcn.004335b1
push esi
call fcn.00435dee
push eax
push dword [ebp - 0x74]
push str.CExtractManager::ExtractSom:_len_error__x____x
push 0x44c95c
push 0x46afb0
call fcn.00401ac3
add esp, 0x1c
jmp 0x4057ae
mov eax, 0xfffffe70
sub eax, dword [ebp - 0x74]
push 2
push eax
push esi
call fcn.004356f9
push esi
push edi
lea eax, [ebp - 0x58]
push 0x190
push eax
call fcn.00435a1e
mov eax, dword [ebp - 0x74]
push 2
neg eax
push eax
push esi
call fcn.004356f9
add esp, 0x28
push dword [ebp - 0x68]
lea edi, [ebx + 0x258]
mov ecx, edi
call fcn.004056cb
push esi
push dword [ebp - 0x68]
mov ecx, edi
push 0x214
push 0
call fcn.0040345f
push eax
call fcn.00435a1e
add esp, 0x10
cmp dword [ebp - 0x68], eax
je 0x4058ee
push str.CExtractManager::ExtractSom:_nFileCount_error
push 0x44c95c
push 0x46afb0
call fcn.00401ac3
add esp, 0xc
mov ecx, edi
call fcn.0040480b
push esi
call fcn.004335b1
pop ecx
jmp 0x4057ae
push dword [0x469a00]
mov eax, dword [0x4699fc]
and dword [ebp - 0x6c], 0
push str.CExtractManager::ExtractSom:_DSInst_Product__d_
mov edi, 0x44c95c
inc eax
push edi
mov esi, 0x46afb0
push esi
mov dword [ebp - 0x64], eax
call fcn.00401ac3
push dword [ebx + 0x1450]
push str.CExtractManager::ExtractSom:_SomType__d_
push edi
push esi
call fcn.00401ac3
xor ebx, ebx
add esp, 0x20
cmp dword [ebp - 0x68], ebx
jle 0x405f91
mov ecx, dword [ebp - 0x5c]
lea eax, [ebx + 1]
push ebx
add ecx, 0x258
mov dword [ebp - 0x60], eax
call fcn.0040345f
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push dword [eax + 0x208]
push dword [ebp - 0x60]
push str.CExtractManager::ExtractSom__d_:_Enc__d__Lang__d_
push edi
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x5c]
add esp, 0x18
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x20c], 0
je 0x405f85
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x1450]
test ecx, ecx
je 0x405a3d
cmp ecx, 2
je 0x405a3d
cmp dword [0x469a00], 1
jle 0x4059d4
push ebx
lea ecx, [eax + 0x258]
call fcn.0040345f
cmp dword [eax + 0x208], 8
je 0x405f85
mov eax, dword [ebp - 0x5c]
push ebx
lea ecx, [eax + 0x258]
call fcn.0040345f
cmp dword [eax + 0x208], 7
jne 0x405a29
mov ecx, dword [ebp - 0x5c]
push str.2.dll
push ebx
add ecx, 0x258
call fcn.0040345f
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x405a29
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__OK_
push edi
push esi
call fcn.00401ac3
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [eax + 0x1458], 2
jmp 0x405c11
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__NO_
push edi
push esi
call fcn.00401ac3
add esp, 0xc
jmp 0x405c11
push ebx
lea ecx, [eax + 0x258]
call fcn.0040345f
mov ecx, dword [ebp - 0x5c]
push eax
call fcn.00403401
mov ecx, dword [0x469a00]
cmp ecx, 1
jle 0x405a68
test al, al
je 0x405f85
cmp ecx, 1
jne 0x405bba
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x208], 2
je 0x405bba
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x208], 1
je 0x405bba
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x210], 0
je 0x405b8e
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
je 0x405b18
add ecx, 0x258
call fcn.0040345f
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push eax
push dword [ebp - 0x60]
push str.CExtractManager::ExtractSom:_Skip_____d___s__Useless_LanguageRes__d_
push edi
push esi
call fcn.00401ac3
add esp, 0x18
jmp 0x405f85
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x210], 5
jl 0x405b8e
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push eax
push str.CExtractManager::ExtractSom:_11_Lang___s____d_
push edi
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x5c]
add esp, 0x14
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x20c], 5
jne 0x405b8e
xor eax, eax
inc eax
push eax
push str.CExtractManager::ExtractSom:_11_LangSds___d_
push edi
push esi
mov dword [ebp - 0x6c], eax
call fcn.00401ac3
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
push ebx
call fcn.00403d53
mov ecx, dword [ebp - 0x5c]
push eax
add ecx, 0x258
push ebx
call fcn.0040345f
push dword [eax + 0x208]
mov ecx, dword [ebp - 0x5c]
call fcn.00404e47
jmp 0x405f85
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x1450], 2
jne 0x405c11
mov ecx, eax
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x208], 7
je 0x405c11
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x208], 8
je 0x405c11
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x208], 9
jne 0x405f85
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x208], 0xd
jne 0x405c46
call fcn.0040f120
test eax, eax
jne 0x405c46
push str.CExtractManager::ExtractSom_MT_X64MODULE_Not_Skip___
push edi
push esi
call fcn.00401ac3
add esp, 0xc
jmp 0x405f85
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x210], 0
je 0x405d5d
cmp dword [ebp - 0x64], 5
jl 0x405d9b
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x210], 3
jne 0x405d9b
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push eax
push str.CExtractManager::ExtractSom:_22_LangEng___s____d__no._d
push edi
push esi
call fcn.00401ac3
add esp, 0x18
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax + 0x210]
jne 0x405d5d
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x210], 5
jl 0x405d5d
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push eax
push str.CExtractManager::ExtractSom:_22_Lang___s____d__no._d
push edi
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x5c]
add esp, 0x18
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x20c], 5
jne 0x405d5d
push dword [ebp - 0x60]
xor eax, eax
inc eax
push eax
push str.CExtractManager::ExtractSom:_22_LangSds___d__no._d
push edi
push esi
mov dword [ebp - 0x6c], eax
call fcn.00401ac3
add esp, 0x14
mov ecx, dword [ebp - 0x5c]
push ebx
call fcn.00403d53
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
cmp dword [eax + 0x208], 1
mov eax, dword [ebp - 0x5c]
jne 0x405df8
lea ebx, [eax + 8]
add eax, 0x1238
push eax
push ebx
call fcn.0043380f
push ebx
push str.CExtractManager::ExtractSom:_MT_DOCUMENT___s_
jmp 0x405b09
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax + 0x210]
je 0x405cbf
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345f
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push dword [ebp - 0x64]
add ecx, 0x258
push ebx
call fcn.0040345f
push eax
push str.CExtractManager::ExtractSom:_22___s__nLcId___d______d__no._d
push edi
push esi
call fcn.00401ac3
add esp, 0x1c
jmp 0x405f85
add eax, 0x1238
push 0x44ca68
push eax
call fcn.004336f3
push dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x60]
push str.CExtractManager::ExtractSom:_Current__d____FileCount__d_
push edi
push esi
call fcn.00401ac3
add esp, 0x1c
cmp dword [ebp - 0x7c], 0
jne 0x405e4a
push str.CExtractManager::ExtractSom:_TarFp_NULL__Skip_FileName
push edi
push esi
call fcn.00401ac3
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + 0x1238]
add esp, 0xc
push ecx
lea ecx, [eax + 0x258]
jmp 0x405ba1
mov ecx, dword [ebp - 0x5c]
push 0
push ebx
add ecx, 0x258
call fcn.0040345f
push dword [eax + 0x200]
push dword [ebp - 0x78]
call fcn.004356f9
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
push ebx
add ecx, 0x258
call fcn.0040345f
push dword [eax + 0x200]
push str.CExtractManager::ExtractSom:_nStart___d_
push edi
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
push ebx
add ecx, 0x258
call fcn.0040345f
mov eax, dword [eax + 0x204]
inc eax
push eax
call fcn.004324e4
pop ecx
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
mov dword [ebp - 0x70], eax
call fcn.0040345f
mov eax, dword [eax + 0x204]
inc eax
push eax
push 0
push dword [ebp - 0x70]
call fcn.00432ab0
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
push dword [ebp - 0x78]
add ecx, 0x258
push ebx
call fcn.0040345f
push dword [eax + 0x204]
push 1
push dword [ebp - 0x70]
call fcn.00435a1e
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
push eax
push 1
push dword [ebp - 0x70]
call fcn.00435b9d
mov ecx, dword [ebp - 0x5c]
add esp, 0x20
push eax
push dword [ebp - 0x80]
add ecx, 0x258
push ebx
call fcn.0040345f
push dword [eax + 0x204]
push str.CExtractManager::ExtractSom:_SIZE__d__READ__d__WRITE__d_
push edi
push esi
call fcn.00401ac3
push dword [ebp - 0x7c]
call fcn.004335b1
add esp, 0x1c
cmp dword [ebp - 0x70], 0
je 0x405f49
push dword [ebp - 0x70]
call fcn.0043209a
pop ecx
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + 0x1238]
push ecx
push ebx
lea ecx, [eax + 0x258]
call fcn.0040345f
mov ebx, dword [ebp - 0x5c]
push dword [eax + 0x208]
mov ecx, ebx
call fcn.00404e47
lea eax, [ebx + 0x1238]
push eax
push str.CExtractManager::ExtractSom:_Extract___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
mov ebx, dword [ebp - 0x60]
cmp ebx, dword [ebp - 0x68]
jl 0x405937
push dword [ebp - 0x78]
call fcn.004335b1
cmp dword [ebp - 0x6c], 1
pop ecx
jne 0x405fcc
push str.CExtractManager::ExtractSom:_TRUE__bLangSds
push edi
push esi
call fcn.00401ac3
add esp, 0xc
mov ebx, dword [ebp - 0x5c]
cmp dword [ebx + 0x1454], 1
jne 0x406035
lea eax, [ebx + 0x1514]
cmp dword [eax + 0x18], 8
jb 0x406025
mov eax, dword [eax + 4]
jmp 0x406028
push 0xc
mov ecx, 0x46b070
call fcn.0040819f
push eax
push dword [ebp - 0x64]
push str.CExtractManager::ExtractSom:_FALSE__bLangSds_nLcId:__d__OLE:__d_
push edi
push esi
call fcn.00401ac3
add esp, 0x14
cmp dword [ebp - 0x64], 5
jl 0x405faf
mov ebx, dword [ebp - 0x5c]
cmp dword [ebx + 0x1450], 0
jne 0x405fb2
push str.CExtractManager::ExtractSom:_FAIL..
push edi
push esi
call fcn.00401ac3
add esp, 0xc
push 0x10
push 0x44e6e8
push str.Unable_to_open_this_document_in_this_system
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4057ae
add eax, 4
push eax
call fcn.004100b0
mov ecx, eax
call fcn.0040fe80
push str.CExtractManager::ExtractSom:_GetSecuAcl__
push edi
push esi
call fcn.00401ac3
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
call fcn.00403a34
push 0x44e5d8
push edi
push esi
call fcn.00401ac3
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp + 0x1c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432994
add ebp, 0x1cc
leave
ret 4