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

Disassembly:
push ebp
sub esp, 0x230
lea ebp, [esp - 4]
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp + 0x230], eax
push 0x29c
mov eax, 0x44e5d8
call fcn.00437ee3
mov ebx, dword [ebp + 0x23c]
mov dword [ebp - 0x14], ecx
call fcn.0040648e
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.00404d71
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.00437ff0
push 0x451f5c
push ebx
call fcn.0043938f
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x406bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CExtractManager::ExtractSom:_fopen_error__s___d_
push 0x45198c
push 0x471470
call fcn.00401ac3
add esp, 0x14
xor eax, eax
jmp 0x4074e6
and dword [ebp - 0x20], 0
push 2
push 0xffffffffffffffe8
push esi
call fcn.0043b0bd
push esi
xor edi, edi
inc edi
push edi
lea eax, [ebp + 0x200]
push 0x10
push eax
call fcn.0043b3e2
push esi
push edi
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.0043b3e2
push esi
push edi
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0043b3e2
push 0x10
lea eax, [ebp + 0x200]
push str.SOMDOCUMENT12345
push eax
call fcn.004399b3
add esp, 0x48
push esi
test eax, eax
je 0x406c46
call fcn.0043924d
mov dword [esp], str.CExtractManager::ExtractSom:_id_error
push 0x45198c
push 0x471470
call fcn.00401ac3
add esp, 0xc
jmp 0x406bc9
call fcn.0043b912
pop ecx
cmp dword [ebp - 0x28], eax
jb 0x406c7d
push esi
call fcn.0043924d
push esi
call fcn.0043b912
push eax
push dword [ebp - 0x28]
push str.CExtractManager::ExtractSom:_len_error__x____x
push 0x45198c
push 0x471470
call fcn.00401ac3
add esp, 0x1c
jmp 0x406bc9
mov eax, 0xfffffe70
sub eax, dword [ebp - 0x28]
push 2
push eax
push esi
call fcn.0043b0bd
push esi
push edi
lea eax, [ebp]
push 0x190
push eax
call fcn.0043b3e2
mov eax, dword [ebp - 0x28]
push 2
neg eax
push eax
push esi
call fcn.0043b0bd
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.00406902
push esi
push dword [ebp - 0x20]
mov ecx, edi
push 0x214
push 0
call fcn.00403c4a
push eax
call fcn.0043b3e2
add esp, 0x10
cmp dword [ebp - 0x20], eax
je 0x406d1a
mov ecx, ebx
call fcn.0040698e
test eax, eax
jne 0x406d1a
push str.CExtractManager::ExtractSom:_nFileCount_error
push 0x45198c
push 0x471470
call fcn.00401ac3
add esp, 0xc
mov ecx, edi
call fcn.004054ca
push esi
call fcn.0043924d
pop ecx
jmp 0x406bc9
push dword [0x46fa30]
mov eax, dword [0x46fa2c]
and dword [ebp - 0x30], 0
push str.CExtractManager::ExtractSom:_DSInst_Product__d_
mov ebx, 0x45198c
inc eax
push ebx
mov esi, 0x471470
push esi
mov dword [ebp - 0x1c], eax
call fcn.00401ac3
mov eax, dword [ebp - 0x14]
push dword [eax + 0x1450]
push str.CExtractManager::ExtractSom:_SomType__d_
push ebx
push esi
call fcn.00401ac3
xor edi, edi
add esp, 0x20
cmp dword [ebp - 0x20], edi
jle 0x40733d
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
push edi
mov dword [ebp - 0x18], eax
call fcn.00403c4a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push dword [eax + 0x208]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push eax
push dword [ebp - 0x18]
push str.CExtractManager::ExtractSom__d___s_:_Enc__d__Lang__d_
push ebx
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x10]
add esp, 0x1c
push str.DSEDCoNx.dll
push edi
call fcn.00403c4a
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x406dcc
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18a0], 1
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x20c], 0
je 0x407331
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1450]
test eax, eax
je 0x406ec7
cmp eax, 2
je 0x406ec7
cmp dword [0x46fa30], 1
jle 0x406e1b
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 8
je 0x407331
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 7
jne 0x406e67
mov ecx, dword [ebp - 0x10]
push str.2.dll
push edi
call fcn.00403c4a
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x406e67
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__OK_
push ebx
push esi
call fcn.00401ac3
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [eax + 0x1458], 2
jmp 0x407045
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 7
jne 0x406eb3
mov ecx, dword [ebp - 0x10]
push str.3.dll
push edi
call fcn.00403c4a
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x406eb3
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__OK_
push ebx
push esi
call fcn.00401ac3
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [eax + 0x1458], 3
jmp 0x407045
push str.CExtractManager::ExtractSom_UI_Version_Check_OLE_SOM__NO_
push ebx
push esi
call fcn.00401ac3
add esp, 0xc
jmp 0x407045
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00403b3f
mov ecx, dword [0x46fa30]
cmp ecx, 1
jle 0x406eef
test al, al
je 0x407331
cmp ecx, 1
jne 0x406fff
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 2
je 0x406fff
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 1
je 0x406fff
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x210], 0
je 0x406fd9
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
je 0x406f7b
call fcn.00403c4a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push eax
push dword [ebp - 0x18]
push str.CExtractManager::ExtractSom:_Skip_____d___s__Useless_LanguageRes__d_
push ebx
push esi
call fcn.00401ac3
add esp, 0x18
jmp 0x407331
call fcn.00403c4a
cmp dword [eax + 0x210], 5
jl 0x406fd9
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push eax
push str.CExtractManager::ExtractSom:_11_Lang___s____d_
push ebx
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x10]
add esp, 0x14
push edi
call fcn.00403c4a
cmp dword [eax + 0x20c], 5
jne 0x406fd9
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.00401ac3
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00404953
mov ecx, dword [ebp - 0x10]
push eax
push edi
call fcn.00403c4a
push dword [eax + 0x208]
mov ecx, dword [ebp - 0x14]
call fcn.00405b2d
jmp 0x407331
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1450], 2
jne 0x407045
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 7
je 0x407045
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 8
je 0x407045
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 9
jne 0x407331
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 0xd
jne 0x407074
call fcn.004145e0
test eax, eax
jne 0x407074
push str.CExtractManager::ExtractSom_MT_X64MODULE_Not_Skip___
push ebx
push esi
call fcn.00401ac3
add esp, 0xc
jmp 0x407331
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x210], 0
je 0x407151
cmp dword [ebp - 0x1c], 5
jl 0x407189
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x210], 3
jne 0x407189
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push eax
push str.CExtractManager::ExtractSom:_22_LangEng___s____d__no._d
push ebx
push esi
call fcn.00401ac3
add esp, 0x18
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
jne 0x407151
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x210], 5
jl 0x407151
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push eax
push str.CExtractManager::ExtractSom:_22_Lang___s____d__no._d
push ebx
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x10]
add esp, 0x18
push edi
call fcn.00403c4a
cmp dword [eax + 0x20c], 5
jne 0x407151
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.00401ac3
add esp, 0x14
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00404953
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
cmp dword [eax + 0x208], 1
mov eax, dword [ebp - 0x14]
jne 0x4071d4
lea edi, [eax + 8]
add eax, 0x1238
push eax
push edi
call fcn.004394ab
push edi
push str.CExtractManager::ExtractSom:_MT_DOCUMENT___s_
jmp 0x406f6c
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x210]
je 0x4070d5
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00403c4a
push dword [eax + 0x210]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
push edi
call fcn.00403c4a
push eax
push str.CExtractManager::ExtractSom:_22___s__nLcId___d______d__no._d
push ebx
push esi
call fcn.00401ac3
add esp, 0x1c
jmp 0x407331
add eax, 0x1238
push 0x451f54
push eax
call fcn.0043938f
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.00401ac3
add esp, 0x1c
cmp dword [ebp - 0x2c], 0
jne 0x40721e
push str.CExtractManager::ExtractSom:_TarFp_NULL__Skip_FileName
push ebx
push esi
call fcn.00401ac3
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0x1238
jmp 0x406fe2
mov ecx, dword [ebp - 0x10]
push 0
push edi
call fcn.00403c4a
push dword [eax + 0x200]
push dword [ebp - 0x34]
call fcn.0043b0bd
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push edi
call fcn.00403c4a
push dword [eax + 0x200]
push str.CExtractManager::ExtractSom:_nStart___d_
push ebx
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push edi
call fcn.00403c4a
mov eax, dword [eax + 0x204]
inc eax
push eax
call fcn.00437a24
pop ecx
mov ecx, dword [ebp - 0x10]
push edi
mov dword [ebp - 0x24], eax
call fcn.00403c4a
mov eax, dword [eax + 0x204]
inc eax
push eax
push 0
push dword [ebp - 0x24]
call fcn.00437ff0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push dword [ebp - 0x34]
push edi
call fcn.00403c4a
push dword [eax + 0x204]
push 1
push dword [ebp - 0x24]
call fcn.0043b3e2
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
push eax
push 1
push dword [ebp - 0x24]
call fcn.0043b561
mov ecx, dword [ebp - 0x10]
add esp, 0x20
push eax
push dword [ebp - 0x38]
push edi
call fcn.00403c4a
push dword [eax + 0x204]
push str.CExtractManager::ExtractSom:_SIZE__d__READ__d__WRITE__d_
push ebx
push esi
call fcn.00401ac3
push dword [ebp - 0x2c]
call fcn.0043924d
add esp, 0x1c
cmp dword [ebp - 0x24], 0
je 0x4072f9
push dword [ebp - 0x24]
call fcn.004375db
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add eax, 0x1238
push eax
push edi
call fcn.00403c4a
mov edi, dword [ebp - 0x14]
push dword [eax + 0x208]
mov ecx, edi
call fcn.00405b2d
lea eax, [edi + 0x1238]
push eax
push str.CExtractManager::ExtractSom:_Extract___s_
push ebx
push esi
call fcn.00401ac3
add esp, 0x10
mov edi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x20]
jl 0x406d66
push dword [ebp - 0x34]
call fcn.0043924d
cmp dword [ebp - 0x30], 1
pop ecx
jne 0x40737b
push str.CExtractManager::ExtractSom:_TRUE__bLangSds
push ebx
push esi
call fcn.00401ac3
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1454], 1
jne 0x4074b1
add eax, 0x1994
cmp dword [eax + 0x18], 8
jb 0x4073d4
mov eax, dword [eax + 4]
jmp 0x4073d7
push 0xc
mov ecx, 0x4715b0
call fcn.00409fff
push eax
push dword [ebp - 0x1c]
push str.CExtractManager::ExtractSom:_FALSE__bLangSds_nLcId:__d__OLE:__d_
push ebx
push esi
call fcn.00401ac3
add esp, 0x14
cmp dword [ebp - 0x1c], 5
jl 0x40735b
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1450], 0
jne 0x40735b
push str.CExtractManager::ExtractSom:_FAIL..
push ebx
push esi
call fcn.00401ac3
add esp, 0xc
push 0x10
push 0x453c48
push str.Unable_to_open_this_document_in_this_system
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406bc9
add eax, 4
push eax
call fcn.00415830
mov ecx, eax
call fcn.004154b0
xor edi, edi
push edi
lea ecx, [ebp - 0x2a8]
call fcn.00407a3f
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 4], edi
call fcn.0041d275
mov ecx, dword [ebp - 0x40]
push 0x10
cmp dword [ecx - 0xc], edi
jne 0x40742f
push 0x453c48
push str.Password_mismatch
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00404585
jmp 0x406bc9
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.00405d31
test eax, eax
jne 0x407469
push 0x10
push 0x453c48
push str.Password_mismatch
push eax
jmp 0x407415
lea ecx, [ebp - 0x40]
call fcn.0040306e
lea eax, [edi + 0x18a4]
push eax
lea eax, [edi + 0x19b0]
push eax
push 0x10
lea eax, [ebp + 0x220]
push eax
mov ecx, edi
call fcn.00403bbb
push 0x10
lea eax, [ebp + 0x220]
push 0
push eax
call fcn.00437ff0
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x2a8]
call fcn.00404585
push str.CExtractManager::ExtractSom:_GetSecuAcl__
push ebx
push esi
call fcn.00401ac3
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp]
push eax
call fcn.0040460f
test eax, eax
je 0x406bc9
push str.CExtractManager::ExtractSom:_Extract__Success_
push ebx
push esi
call fcn.00401ac3
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.00437ed4
add ebp, 0x234
leave
ret 4