Function at 0x406033
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.004059c3
push esi
mov ecx, ebx
call fcn.00404690
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.00433420
push 0x44ca60
push esi
call fcn.00434063
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x78], esi
test esi, esi
jne 0x4060d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x6c]
push str.CExtractManager::ExtractSom:_fopen_error__s___d_
push 0x44c94c
push 0x46afb0
call fcn.00401ae2
add esp, 0x14
xor eax, eax
jmp 0x40698d
and dword [ebp - 0x68], 0
push 2
push 0xffffffffffffffe8
push esi
call fcn.00436069
push esi
xor edi, edi
inc edi
push edi
lea eax, [ebp + 0x1a8]
push 0x10
push eax
call fcn.0043638e
push esi
push edi
lea eax, [ebp - 0x68]
push 4
push eax
call fcn.0043638e
push esi
push edi
lea eax, [ebp - 0x74]
push 4
push eax
call fcn.0043638e
push 0x10
lea eax, [ebp + 0x1a8]
push str.SOMDOCUMENT12345
push eax
call fcn.0043495f
add esp, 0x48
push esi
test eax, eax
je 0x40614c
call fcn.00433f21
mov dword [esp], str.CExtractManager::ExtractSom:_id_error
push 0x44c94c
push 0x46afb0
call fcn.00401ae2
add esp, 0xc
jmp 0x4060cf
call fcn.004368be
pop ecx
cmp dword [ebp - 0x74], eax
jb 0x406183
push esi
call fcn.00433f21
push esi
call fcn.004368be
push eax
push dword [ebp - 0x74]
push str.CExtractManager::ExtractSom:_len_error__x____x
push 0x44c94c
push 0x46afb0
call fcn.00401ae2
add esp, 0x1c
jmp 0x4060cf
mov eax, 0xfffffe70
sub eax, dword [ebp - 0x74]
push 2
push eax
push esi
call fcn.00436069
push esi
push edi
lea eax, [ebp - 0x58]
push 0x190
push eax
call fcn.0043638e
mov eax, dword [ebp - 0x74]
push 2
neg eax
push eax
push esi
call fcn.00436069
add esp, 0x28
push dword [ebp - 0x68]
lea edi, [ebx + 0x258]
mov ecx, edi
call fcn.00405e0b
push esi
push dword [ebp - 0x68]
mov ecx, edi
push 0x214
push 0
call fcn.0040345a
push eax
call fcn.0043638e
add esp, 0x10
cmp dword [ebp - 0x68], eax
je 0x40621a
mov ecx, ebx
call fcn.00405e97
test eax, eax
jne 0x40621a
push str.CExtractManager::ExtractSom:_nFileCount_error
push 0x44c94c
push 0x46afb0
call fcn.00401ae2
add esp, 0xc
mov ecx, edi
call fcn.00404c15
push esi
call fcn.00433f21
pop ecx
jmp 0x4060cf
push dword [0x469a00]
mov eax, dword [0x4699fc]
and dword [ebp - 0x6c], 0
push str.CExtractManager::ExtractSom:_DSInst_Product__d_
mov edi, 0x44c94c
inc eax
push edi
mov esi, 0x46afb0
push esi
mov dword [ebp - 0x64], eax
call fcn.00401ae2
push dword [ebx + 0x1450]
push str.CExtractManager::ExtractSom:_SomType__d_
push edi
push esi
call fcn.00401ae2
xor ebx, ebx
add esp, 0x20
cmp dword [ebp - 0x68], ebx
jle 0x4068bd
mov ecx, dword [ebp - 0x5c]
lea eax, [ebx + 1]
push ebx
add ecx, 0x258
mov dword [ebp - 0x60], eax
call fcn.0040345a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push dword [eax + 0x208]
push dword [ebp - 0x60]
push str.CExtractManager::ExtractSom__d_:_Enc__d__Lang__d_
push edi
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x5c]
add esp, 0x18
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x20c], 0
je 0x4068b1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x1450]
test ecx, ecx
je 0x406369
cmp ecx, 2
je 0x406369
cmp dword [0x469a00], 1
jle 0x406300
push ebx
lea ecx, [eax + 0x258]
call fcn.0040345a
cmp dword [eax + 0x208], 8
je 0x4068b1
mov eax, dword [ebp - 0x5c]
push ebx
lea ecx, [eax + 0x258]
call fcn.0040345a
cmp dword [eax + 0x208], 7
jne 0x406355
mov ecx, dword [ebp - 0x5c]
push str.2.dll
push ebx
add ecx, 0x258
call fcn.0040345a
push eax
call dword [sym.imp.SHELL32.dll_StrStrIW]
test eax, eax
je 0x406355
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__OK_
push edi
push esi
call fcn.00401ae2
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [eax + 0x1458], 2
jmp 0x40653d
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__NO_
push edi
push esi
call fcn.00401ae2
add esp, 0xc
jmp 0x40653d
push ebx
lea ecx, [eax + 0x258]
call fcn.0040345a
mov ecx, dword [ebp - 0x5c]
push eax
call fcn.004033dd
mov ecx, dword [0x469a00]
cmp ecx, 1
jle 0x406394
test al, al
je 0x4068b1
cmp ecx, 1
jne 0x4064e6
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x208], 2
je 0x4064e6
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x208], 1
je 0x4064e6
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x210], 0
je 0x4064ba
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
je 0x406444
add ecx, 0x258
call fcn.0040345a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push eax
push dword [ebp - 0x60]
push str.CExtractManager::ExtractSom:_Skip_____d___s__Useless_LanguageRes__d_
push edi
push esi
call fcn.00401ae2
add esp, 0x18
jmp 0x4068b1
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x210], 5
jl 0x4064ba
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push eax
push str.CExtractManager::ExtractSom:_11_Lang___s____d_
push edi
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x5c]
add esp, 0x14
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x20c], 5
jne 0x4064ba
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.00401ae2
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
push ebx
call fcn.0040403d
mov ecx, dword [ebp - 0x5c]
push eax
add ecx, 0x258
push ebx
call fcn.0040345a
push dword [eax + 0x208]
mov ecx, dword [ebp - 0x5c]
call fcn.00405251
jmp 0x4068b1
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x1450], 2
jne 0x40653d
mov ecx, eax
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x208], 7
je 0x40653d
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x208], 8
je 0x40653d
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x208], 9
jne 0x4068b1
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x208], 0xd
jne 0x406572
call fcn.0040fb10
test eax, eax
jne 0x406572
push str.CExtractManager::ExtractSom_MT_X64MODULE_Not_Skip___
push edi
push esi
call fcn.00401ae2
add esp, 0xc
jmp 0x4068b1
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x210], 0
je 0x406689
cmp dword [ebp - 0x64], 5
jl 0x4066c7
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x210], 3
jne 0x4066c7
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push eax
push str.CExtractManager::ExtractSom:_22_LangEng___s____d__no._d
push edi
push esi
call fcn.00401ae2
add esp, 0x18
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax + 0x210]
jne 0x406689
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x210], 5
jl 0x406689
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push eax
push str.CExtractManager::ExtractSom:_22_Lang___s____d__no._d
push edi
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x5c]
add esp, 0x18
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x20c], 5
jne 0x406689
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.00401ae2
add esp, 0x14
mov ecx, dword [ebp - 0x5c]
push ebx
call fcn.0040403d
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
cmp dword [eax + 0x208], 1
mov eax, dword [ebp - 0x5c]
jne 0x406724
lea ebx, [eax + 8]
add eax, 0x1238
push eax
push ebx
call fcn.0043417f
push ebx
push str.CExtractManager::ExtractSom:_MT_DOCUMENT___s_
jmp 0x406435
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax + 0x210]
je 0x4065eb
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
call fcn.0040345a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x5c]
push dword [ebp - 0x64]
add ecx, 0x258
push ebx
call fcn.0040345a
push eax
push str.CExtractManager::ExtractSom:_22___s__nLcId___d______d__no._d
push edi
push esi
call fcn.00401ae2
add esp, 0x1c
jmp 0x4068b1
add eax, 0x1238
push 0x44ca58
push eax
call fcn.00434063
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.00401ae2
add esp, 0x1c
cmp dword [ebp - 0x7c], 0
jne 0x406776
push str.CExtractManager::ExtractSom:_TarFp_NULL__Skip_FileName
push edi
push esi
call fcn.00401ae2
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + 0x1238]
add esp, 0xc
push ecx
lea ecx, [eax + 0x258]
jmp 0x4064cd
mov ecx, dword [ebp - 0x5c]
push 0
push ebx
add ecx, 0x258
call fcn.0040345a
push dword [eax + 0x200]
push dword [ebp - 0x78]
call fcn.00436069
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
push ebx
add ecx, 0x258
call fcn.0040345a
push dword [eax + 0x200]
push str.CExtractManager::ExtractSom:_nStart___d_
push edi
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
push ebx
add ecx, 0x258
call fcn.0040345a
mov eax, dword [eax + 0x204]
inc eax
push eax
call fcn.00432e54
pop ecx
mov ecx, dword [ebp - 0x5c]
push ebx
add ecx, 0x258
mov dword [ebp - 0x70], eax
call fcn.0040345a
mov eax, dword [eax + 0x204]
inc eax
push eax
push 0
push dword [ebp - 0x70]
call fcn.00433420
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
push dword [ebp - 0x78]
add ecx, 0x258
push ebx
call fcn.0040345a
push dword [eax + 0x204]
push 1
push dword [ebp - 0x70]
call fcn.0043638e
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
push eax
push 1
push dword [ebp - 0x70]
call fcn.0043650d
mov ecx, dword [ebp - 0x5c]
add esp, 0x20
push eax
push dword [ebp - 0x80]
add ecx, 0x258
push ebx
call fcn.0040345a
push dword [eax + 0x204]
push str.CExtractManager::ExtractSom:_SIZE__d__READ__d__WRITE__d_
push edi
push esi
call fcn.00401ae2
push dword [ebp - 0x7c]
call fcn.00433f21
add esp, 0x1c
cmp dword [ebp - 0x70], 0
je 0x406875
push dword [ebp - 0x70]
call fcn.00432a0d
pop ecx
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + 0x1238]
push ecx
push ebx
lea ecx, [eax + 0x258]
call fcn.0040345a
mov ebx, dword [ebp - 0x5c]
push dword [eax + 0x208]
mov ecx, ebx
call fcn.00405251
lea eax, [ebx + 0x1238]
push eax
push str.CExtractManager::ExtractSom:_Extract___s_
push edi
push esi
call fcn.00401ae2
add esp, 0x10
mov ebx, dword [ebp - 0x60]
cmp ebx, dword [ebp - 0x68]
jl 0x406263
push dword [ebp - 0x78]
call fcn.00433f21
cmp dword [ebp - 0x6c], 1
pop ecx
jne 0x4068f8
push str.CExtractManager::ExtractSom:_TRUE__bLangSds
push edi
push esi
call fcn.00401ae2
add esp, 0xc
mov ebx, dword [ebp - 0x5c]
cmp dword [ebx + 0x1454], 1
jne 0x406961
lea eax, [ebx + 0x1514]
cmp dword [eax + 0x18], 8
jb 0x406951
mov eax, dword [eax + 4]
jmp 0x406954
push 0xc
mov ecx, 0x46b070
call fcn.00408aa4
push eax
push dword [ebp - 0x64]
push str.CExtractManager::ExtractSom:_FALSE__bLangSds_nLcId:__d__OLE:__d_
push edi
push esi
call fcn.00401ae2
add esp, 0x14
cmp dword [ebp - 0x64], 5
jl 0x4068db
mov ebx, dword [ebp - 0x5c]
cmp dword [ebx + 0x1450], 0
jne 0x4068de
push str.CExtractManager::ExtractSom:_FAIL..
push edi
push esi
call fcn.00401ae2
add esp, 0xc
push 0x10
push 0x44e6e0
push str.Unable_to_open_this_document_in_this_system
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4060cf
add eax, 4
push eax
call fcn.00410aa0
mov ecx, eax
call fcn.00410870
push str.CExtractManager::ExtractSom:_GetSecuAcl__
push edi
push esi
call fcn.00401ae2
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
call fcn.00403d1e
push str.CExtractManager::ExtractSom:_Extract__Success_
push edi
push esi
call fcn.00401ae2
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp + 0x1c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433304
add ebp, 0x1cc
leave
ret 4