Function at 0x4063b4
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, 0x44aaa7
call fcn.00434673
mov ebx, dword [ebp + 0x23c]
mov dword [ebp - 0x14], ecx
call fcn.00405d1c
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.004045df
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.00434780
push 0x44ea70
push ebx
call fcn.004353c3
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40645a
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 0x406cf0
and dword [ebp - 0x20], 0
push 2
push 0xffffffffffffffe8
push esi
call fcn.004373c9
push esi
xor edi, edi
inc edi
push edi
lea eax, [ebp + 0x200]
push 0x10
push eax
call fcn.004376ee
push esi
push edi
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.004376ee
push esi
push edi
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.004376ee
push 0x10
lea eax, [ebp + 0x200]
push str.SOMDOCUMENT12345
push eax
call fcn.00435cbf
add esp, 0x48
push esi
test eax, eax
je 0x4064d0
call fcn.00435281
mov dword [esp], str.CExtractManager::ExtractSom:_id_error
push 0x44e95c
push 0x46e460
call fcn.00401ae2
add esp, 0xc
jmp 0x406453
call fcn.00437c1e
pop ecx
cmp dword [ebp - 0x28], eax
jb 0x406507
push esi
call fcn.00435281
push esi
call fcn.00437c1e
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 0x406453
mov eax, 0xfffffe70
sub eax, dword [ebp - 0x28]
push 2
push eax
push esi
call fcn.004373c9
push esi
push edi
lea eax, [ebp]
push 0x190
push eax
call fcn.004376ee
mov eax, dword [ebp - 0x28]
push 2
neg eax
push eax
push esi
call fcn.004373c9
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.0040618c
push esi
push dword [ebp - 0x20]
mov ecx, edi
push 0x214
push 0
call fcn.004034b8
push eax
call fcn.004376ee
add esp, 0x10
cmp dword [ebp - 0x20], eax
je 0x4065a4
mov ecx, ebx
call fcn.00406218
test eax, eax
jne 0x4065a4
push str.CExtractManager::ExtractSom:_nFileCount_error
push 0x44e95c
push 0x46e460
call fcn.00401ae2
add esp, 0xc
mov ecx, edi
call fcn.00404d58
push esi
call fcn.00435281
pop ecx
jmp 0x406453
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 0x406b47
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
push edi
mov dword [ebp - 0x18], eax
call fcn.004034b8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
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.004034b8
cmp dword [eax + 0x20c], 0
je 0x406b3b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1450]
test eax, eax
je 0x4066d1
cmp eax, 2
je 0x4066d1
cmp dword [0x46ca20], 1
jle 0x406671
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 8
je 0x406b3b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 7
jne 0x4066bd
mov ecx, dword [ebp - 0x10]
push str.2.dll
push edi
call fcn.004034b8
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4066bd
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 0x40684f
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__NO_
push ebx
push esi
call fcn.00401ae2
add esp, 0xc
jmp 0x40684f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004033cb
mov ecx, dword [0x46ca20]
cmp ecx, 1
jle 0x4066f9
test al, al
je 0x406b3b
cmp ecx, 1
jne 0x406809
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 2
je 0x406809
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 1
je 0x406809
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x210], 0
je 0x4067e3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
je 0x406785
call fcn.004034b8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
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 0x406b3b
call fcn.004034b8
cmp dword [eax + 0x210], 5
jl 0x4067e3
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
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.004034b8
cmp dword [eax + 0x20c], 5
jne 0x4067e3
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.004041c1
mov ecx, dword [ebp - 0x10]
push eax
push edi
call fcn.004034b8
push dword [eax + 0x208]
mov ecx, dword [ebp - 0x14]
call fcn.004053bb
jmp 0x406b3b
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1450], 2
jne 0x40684f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 7
je 0x40684f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 8
je 0x40684f
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 9
jne 0x406b3b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 0xd
jne 0x40687e
call fcn.00410e60
test eax, eax
jne 0x40687e
push str.CExtractManager::ExtractSom_MT_X64MODULE_Not_Skip___
push ebx
push esi
call fcn.00401ae2
add esp, 0xc
jmp 0x406b3b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x210], 0
je 0x40695b
cmp dword [ebp - 0x1c], 5
jl 0x406993
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x210], 3
jne 0x406993
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
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.004034b8
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
jne 0x40695b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x210], 5
jl 0x40695b
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
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.004034b8
cmp dword [eax + 0x20c], 5
jne 0x40695b
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.004041c1
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
cmp dword [eax + 0x208], 1
mov eax, dword [ebp - 0x14]
jne 0x4069de
lea edi, [eax + 8]
add eax, 0x1238
push eax
push edi
call fcn.004354df
push edi
push str.CExtractManager::ExtractSom:_MT_DOCUMENT___s_
jmp 0x406776
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
je 0x4068df
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004034b8
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
push edi
call fcn.004034b8
push eax
push str.CExtractManager::ExtractSom:_22___s__nLcId___d______d__no._d
push ebx
push esi
call fcn.00401ae2
add esp, 0x1c
jmp 0x406b3b
add eax, 0x1238
push 0x44ea68
push eax
call fcn.004353c3
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 0x406a28
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 0x4067ec
mov ecx, dword [ebp - 0x10]
push 0
push edi
call fcn.004034b8
push dword [eax + 0x200]
push dword [ebp - 0x34]
call fcn.004373c9
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push edi
call fcn.004034b8
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.004034b8
mov eax, dword [eax + 0x204]
inc eax
push eax
call fcn.004341b4
pop ecx
mov ecx, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x24], eax
call fcn.004034b8
mov eax, dword [eax + 0x204]
inc eax
push eax
push 0
push dword [ebp - 0x24]
call fcn.00434780
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push dword [ebp - 0x34]
push edi
call fcn.004034b8
push dword [eax + 0x204]
push 1
push dword [ebp - 0x24]
call fcn.004376ee
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
push eax
push 1
push dword [ebp - 0x24]
call fcn.0043786d
mov ecx, dword [ebp - 0x10]
add esp, 0x20
push eax
push dword [ebp - 0x38]
push edi
call fcn.004034b8
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.00435281
add esp, 0x1c
cmp dword [ebp - 0x24], 0
je 0x406b03
push dword [ebp - 0x24]
call fcn.00433d6f
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add eax, 0x1238
push eax
push edi
call fcn.004034b8
mov edi, dword [ebp - 0x14]
push dword [eax + 0x208]
mov ecx, edi
call fcn.004053bb
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 0x4065f0
push dword [ebp - 0x34]
call fcn.00435281
cmp dword [ebp - 0x30], 1
pop ecx
jne 0x406b85
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 0x406cbb
add eax, 0x1990
cmp dword [eax + 0x18], 8
jb 0x406bde
mov eax, dword [eax + 4]
jmp 0x406be1
push 0xc
mov ecx, 0x46e5a0
call fcn.004096e7
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 0x406b65
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1450], 0
jne 0x406b65
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 0x406453
add eax, 4
push eax
call fcn.00411fc0
mov ecx, eax
call fcn.00411c40
xor edi, edi
push edi
lea ecx, [ebp - 0x2a8]
call fcn.0040713b
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 4], edi
call fcn.00419968
mov ecx, dword [ebp - 0x40]
push 0x10
cmp dword [ecx - 0xc], edi
jne 0x406c39
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.00403df3
jmp 0x406453
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.004055bf
test eax, eax
jne 0x406c73
push 0x10
push 0x450768
push str.Password_mismatch
push eax
jmp 0x406c1f
lea ecx, [ebp - 0x40]
call fcn.00402926
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.00403448
push 0x10
lea eax, [ebp + 0x220]
push 0
push eax
call fcn.00434780
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x2a8]
call fcn.00403df3
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.00403e7d
test eax, eax
je 0x406453
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.00434664
add ebp, 0x234
leave
ret 4