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

Disassembly:
push ebp
sub esp, 0x230
lea ebp, [esp - 4]
mov eax, dword [0x46aff0]
xor eax, ebp
mov dword [ebp + 0x230], eax
push 0x29c
mov eax, 0x44ac31
call fcn.00434843
mov ebx, dword [ebp + 0x23c]
mov dword [ebp - 0x14], ecx
call fcn.00405d3c
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.0040461f
push 7
pop ecx
xor eax, eax
mov byte [ebp + 0x200], 0
lea edi, [ebp + 0x201]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1ff
stosb byte es:[edi], al
lea eax, [ebp + 1]
push 0
push eax
mov byte [ebp], 0
call fcn.00434950
push 0x44ea70
push ebx
call fcn.00435593
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40647a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CExtractManager::ExtractSom:_fopen_error__s___d_
push 0x44e95c
push 0x46e460
call fcn.00401ae2
add esp, 0x14
xor eax, eax
jmp 0x406d10
and dword [ebp - 0x20], 0
push 2
push 0xffffffffffffffe8
push esi
call fcn.00437599
push esi
xor edi, edi
inc edi
push edi
lea eax, [ebp + 0x200]
push 0x10
push eax
call fcn.004378be
push esi
push edi
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.004378be
push esi
push edi
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.004378be
push 0x10
lea eax, [ebp + 0x200]
push str.SOMDOCUMENT12345
push eax
call fcn.00435e8f
add esp, 0x48
push esi
test eax, eax
je 0x4064f0
call fcn.00435451
mov dword [esp], str.CExtractManager::ExtractSom:_id_error
push 0x44e95c
push 0x46e460
call fcn.00401ae2
add esp, 0xc
jmp 0x406473
call fcn.00437dee
pop ecx
cmp dword [ebp - 0x28], eax
jb 0x406527
push esi
call fcn.00435451
push esi
call fcn.00437dee
push eax
push dword [ebp - 0x28]
push str.CExtractManager::ExtractSom:_len_error__x____x
push 0x44e95c
push 0x46e460
call fcn.00401ae2
add esp, 0x1c
jmp 0x406473
mov eax, 0xfffffe70
sub eax, dword [ebp - 0x28]
push 2
push eax
push esi
call fcn.00437599
push esi
push edi
lea eax, [ebp]
push 0x190
push eax
call fcn.004378be
mov eax, dword [ebp - 0x28]
push 2
neg eax
push eax
push esi
call fcn.00437599
mov ebx, dword [ebp - 0x14]
add esp, 0x28
push dword [ebp - 0x20]
lea edi, [ebx + 0x258]
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.004061ac
push esi
push dword [ebp - 0x20]
mov ecx, edi
push 0x214
push 0
call fcn.004034f8
push eax
call fcn.004378be
add esp, 0x10
cmp dword [ebp - 0x20], eax
je 0x4065c4
mov ecx, ebx
call fcn.00406238
test eax, eax
jne 0x4065c4
push str.CExtractManager::ExtractSom:_nFileCount_error
push 0x44e95c
push 0x46e460
call fcn.00401ae2
add esp, 0xc
mov ecx, edi
call fcn.00404d78
push esi
call fcn.00435451
pop ecx
jmp 0x406473
push dword [0x46ca20]
mov eax, dword [0x46ca1c]
and dword [ebp - 0x30], 0
push str.CExtractManager::ExtractSom:_DSInst_Product__d_
mov ebx, 0x44e95c
inc eax
push ebx
mov esi, 0x46e460
push esi
mov dword [ebp - 0x1c], eax
call fcn.00401ae2
mov eax, dword [ebp - 0x14]
push dword [eax + 0x1450]
push str.CExtractManager::ExtractSom:_SomType__d_
push ebx
push esi
call fcn.00401ae2
xor edi, edi
add esp, 0x20
cmp dword [ebp - 0x20], edi
jle 0x406b67
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
push edi
mov dword [ebp - 0x18], eax
call fcn.004034f8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push dword [eax + 0x208]
push dword [ebp - 0x18]
push str.CExtractManager::ExtractSom__d_:_Enc__d__Lang__d_
push ebx
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x10]
add esp, 0x18
push edi
call fcn.004034f8
cmp dword [eax + 0x20c], 0
je 0x406b5b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1450]
test eax, eax
je 0x4066f1
cmp eax, 2
je 0x4066f1
cmp dword [0x46ca20], 1
jle 0x406691
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 8
je 0x406b5b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 7
jne 0x4066dd
mov ecx, dword [ebp - 0x10]
push str.2.dll
push edi
call fcn.004034f8
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4066dd
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__OK_
push ebx
push esi
call fcn.00401ae2
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [eax + 0x1458], 2
jmp 0x40686f
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__NO_
push ebx
push esi
call fcn.00401ae2
add esp, 0xc
jmp 0x40686f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0040340b
mov ecx, dword [0x46ca20]
cmp ecx, 1
jle 0x406719
test al, al
je 0x406b5b
cmp ecx, 1
jne 0x406829
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 2
je 0x406829
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 1
je 0x406829
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x210], 0
je 0x406803
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
je 0x4067a5
call fcn.004034f8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push eax
push dword [ebp - 0x18]
push str.CExtractManager::ExtractSom:_Skip_____d___s__Useless_LanguageRes__d_
push ebx
push esi
call fcn.00401ae2
add esp, 0x18
jmp 0x406b5b
call fcn.004034f8
cmp dword [eax + 0x210], 5
jl 0x406803
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push eax
push str.CExtractManager::ExtractSom:_11_Lang___s____d_
push ebx
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.004034f8
cmp dword [eax + 0x20c], 5
jne 0x406803
xor eax, eax
inc eax
push eax
push str.CExtractManager::ExtractSom:_11_LangSds___d_
push ebx
push esi
mov dword [ebp - 0x30], eax
call fcn.00401ae2
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00404201
mov ecx, dword [ebp - 0x10]
push eax
push edi
call fcn.004034f8
push dword [eax + 0x208]
mov ecx, dword [ebp - 0x14]
call fcn.004053db
jmp 0x406b5b
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1450], 2
jne 0x40686f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 7
je 0x40686f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 8
je 0x40686f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 9
jne 0x406b5b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 0xd
jne 0x40689e
call fcn.00410f70
test eax, eax
jne 0x40689e
push str.CExtractManager::ExtractSom_MT_X64MODULE_Not_Skip___
push ebx
push esi
call fcn.00401ae2
add esp, 0xc
jmp 0x406b5b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x210], 0
je 0x40697b
cmp dword [ebp - 0x1c], 5
jl 0x4069b3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x210], 3
jne 0x4069b3
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push eax
push str.CExtractManager::ExtractSom:_22_LangEng___s____d__no._d
push ebx
push esi
call fcn.00401ae2
add esp, 0x18
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
jne 0x40697b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x210], 5
jl 0x40697b
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push eax
push str.CExtractManager::ExtractSom:_22_Lang___s____d__no._d
push ebx
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x10]
add esp, 0x18
push edi
call fcn.004034f8
cmp dword [eax + 0x20c], 5
jne 0x40697b
push dword [ebp - 0x18]
xor eax, eax
inc eax
push eax
push str.CExtractManager::ExtractSom:_22_LangSds___d__no._d
push ebx
push esi
mov dword [ebp - 0x30], eax
call fcn.00401ae2
add esp, 0x14
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00404201
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
cmp dword [eax + 0x208], 1
mov eax, dword [ebp - 0x14]
jne 0x4069fe
lea edi, [eax + 8]
add eax, 0x1238
push eax
push edi
call fcn.004356af
push edi
push str.CExtractManager::ExtractSom:_MT_DOCUMENT___s_
jmp 0x406796
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
je 0x4068ff
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034f8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
push edi
call fcn.004034f8
push eax
push str.CExtractManager::ExtractSom:_22___s__nLcId___d______d__no._d
push ebx
push esi
call fcn.00401ae2
add esp, 0x1c
jmp 0x406b5b
add eax, 0x1238
push 0x44ea68
push eax
call fcn.00435593
push dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x18]
push str.CExtractManager::ExtractSom:_Current__d____FileCount__d_
push ebx
push esi
call fcn.00401ae2
add esp, 0x1c
cmp dword [ebp - 0x2c], 0
jne 0x406a48
push str.CExtractManager::ExtractSom:_TarFp_NULL__Skip_FileName
push ebx
push esi
call fcn.00401ae2
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0x1238
jmp 0x40680c
mov ecx, dword [ebp - 0x10]
push 0
push edi
call fcn.004034f8
push dword [eax + 0x200]
push dword [ebp - 0x34]
call fcn.00437599
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push edi
call fcn.004034f8
push dword [eax + 0x200]
push str.CExtractManager::ExtractSom:_nStart___d_
push ebx
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push edi
call fcn.004034f8
mov eax, dword [eax + 0x204]
inc eax
push eax
call fcn.00434384
pop ecx
mov ecx, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x24], eax
call fcn.004034f8
mov eax, dword [eax + 0x204]
inc eax
push eax
push 0
push dword [ebp - 0x24]
call fcn.00434950
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push dword [ebp - 0x34]
push edi
call fcn.004034f8
push dword [eax + 0x204]
push 1
push dword [ebp - 0x24]
call fcn.004378be
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
push eax
push 1
push dword [ebp - 0x24]
call fcn.00437a3d
mov ecx, dword [ebp - 0x10]
add esp, 0x20
push eax
push dword [ebp - 0x38]
push edi
call fcn.004034f8
push dword [eax + 0x204]
push str.CExtractManager::ExtractSom:_SIZE__d__READ__d__WRITE__d_
push ebx
push esi
call fcn.00401ae2
push dword [ebp - 0x2c]
call fcn.00435451
add esp, 0x1c
cmp dword [ebp - 0x24], 0
je 0x406b23
push dword [ebp - 0x24]
call fcn.00433f33
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add eax, 0x1238
push eax
push edi
call fcn.004034f8
mov edi, dword [ebp - 0x14]
push dword [eax + 0x208]
mov ecx, edi
call fcn.004053db
lea eax, [edi + 0x1238]
push eax
push str.CExtractManager::ExtractSom:_Extract___s_
push ebx
push esi
call fcn.00401ae2
add esp, 0x10
mov edi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x20]
jl 0x406610
push dword [ebp - 0x34]
call fcn.00435451
cmp dword [ebp - 0x30], 1
pop ecx
jne 0x406ba5
push str.CExtractManager::ExtractSom:_TRUE__bLangSds
push ebx
push esi
call fcn.00401ae2
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1454], 1
jne 0x406cdb
add eax, 0x1990
cmp dword [eax + 0x18], 8
jb 0x406bfe
mov eax, dword [eax + 4]
jmp 0x406c01
push 0xc
mov ecx, 0x46e5a0
call fcn.0040967d
push eax
push dword [ebp - 0x1c]
push str.CExtractManager::ExtractSom:_FALSE__bLangSds_nLcId:__d__OLE:__d_
push ebx
push esi
call fcn.00401ae2
add esp, 0x14
cmp dword [ebp - 0x1c], 5
jl 0x406b85
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1450], 0
jne 0x406b85
push str.CExtractManager::ExtractSom:_FAIL..
push ebx
push esi
call fcn.00401ae2
add esp, 0xc
push 0x10
push 0x450768
push str.Unable_to_open_this_document_in_this_system
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406473
add eax, 4
push eax
call fcn.004121c0
mov ecx, eax
call fcn.00411e40
xor edi, edi
push edi
lea ecx, [ebp - 0x2a8]
call fcn.0040715b
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 4], edi
call fcn.00419b62
mov ecx, dword [ebp - 0x40]
push 0x10
cmp dword [ecx - 0xc], edi
jne 0x406c59
push 0x450768
push str.Password_mismatch
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00403e33
jmp 0x406473
xor eax, eax
mov byte [ebp + 0x220], 0
lea edi, [ebp + 0x221]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp - 0x14]
lea eax, [ebp + 0x220]
push eax
push ecx
mov ecx, edi
call fcn.004055df
test eax, eax
jne 0x406c93
push 0x10
push 0x450768
push str.Password_mismatch
push eax
jmp 0x406c3f
lea ecx, [ebp - 0x40]
call fcn.0040293b
lea eax, [edi + 0x18a0]
push eax
lea eax, [edi + 0x19ac]
push eax
push 0x10
lea eax, [ebp + 0x220]
push eax
mov ecx, edi
call fcn.00403469
push 0x10
lea eax, [ebp + 0x220]
push 0
push eax
call fcn.00434950
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x2a8]
call fcn.00403e33
push str.CExtractManager::ExtractSom:_GetSecuAcl__
push ebx
push esi
call fcn.00401ae2
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp]
push eax
call fcn.00403ebd
test eax, eax
je 0x406473
push str.CExtractManager::ExtractSom:_Extract__Success_
push ebx
push esi
call fcn.00401ae2
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x230]
xor ecx, ebp
call fcn.00434834
add ebp, 0x234
leave
ret 4