Function at 0x1004dde0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3b4
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x3b0], eax
mov eax, dword [esp + 0x3bc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c4]
push edi
xor edi, edi
push 0x103
mov ebx, ecx
mov ecx, dword [esp + 0x3dc]
lea edx, [esp + 0xc1]
push edi
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
or ebp, 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0xc8], 0
call sub.MSVCR80.dll_memset
push 0x44
lea eax, [esp + 0x80]
push edi
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
add esp, 0x18
cmp edi, 4
mov dword [esp + 0x80], 0
jne 0x1004e121
call fcn.100108f0
test eax, eax
mov dword [esp + 0x18], eax
je 0x1004e4a6
mov ecx, dword [esi + 4]
push ecx
mov ecx, eax
call fcn.10010370
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0x18]
mov ebx, eax
push edx
mov ecx, ebp
mov dword [esp + 0x28], ebx
call fcn.100101c0
test al, al
jne 0x1004e08c
mov eax, dword [esi + 4]
push eax
mov ecx, ebp
call fcn.1000ff20
mov ebp, eax
test ebp, ebp
jne 0x1004e4a6
mov ecx, dword [esi]
push 1
call fcn.10004c70
mov ecx, eax
call fcn.10005320
mov ecx, ebx
mov ebp, eax
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
mov ecx, dword [ebp]
add eax, 0x89c
push eax
push 0
push ecx
mov ecx, dword [esi]
push 1
call fcn.10004c70
mov ecx, eax
call fcn.10005320
mov edx, dword [eax + 4]
push edx
mov ecx, ebx
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
push eax
call fcn.10081010
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1004dfc8
push 0x1ff
lea eax, [esp + 0x1c5]
push 0
push eax
mov byte [esp + 0x1cc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x412
lea ecx, [esp + 0x1c4]
push ecx
mov ecx, ebx
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
mov edx, dword [eax + 0x8a4]
push edx
call fcn.10083630
add esp, 0xc
lea eax, [esp + 0x1c0]
push eax
mov ecx, ebx
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
mov ecx, dword [eax + 0x8a4]
push ecx
jmp 0x1004e06f
mov ecx, dword [esi]
push 1
call fcn.10004c70
mov ecx, eax
call fcn.10005320
mov ecx, ebx
mov ebp, eax
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
mov edx, dword [ebp]
mov ecx, dword [esi]
add eax, 0x8a0
push eax
push 0
push edx
push 1
call fcn.10004c70
mov ecx, eax
call fcn.10005320
mov eax, dword [eax + 4]
push eax
mov ecx, ebx
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
push eax
call fcn.100810a0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1004e08c
push 0x1ff
lea ecx, [esp + 0x1c5]
push 0
push ecx
mov byte [esp + 0x1cc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x412
lea edx, [esp + 0x1c4]
push edx
mov ecx, ebx
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
mov eax, dword [eax + 0x8a4]
push eax
call fcn.10083630
add esp, 0xc
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, ebx
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
mov edx, dword [eax + 0x8a4]
push edx
push str._FATAL__Fucking_Error__d__:__s_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
jmp 0x1004e4a6
mov ecx, ebx
mov dword [esp + 0x80], 2
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
mov dword [esp + 0x90], eax
mov ecx, dword [esi]
call fcn.10004c70
mov ecx, eax
call fcn.10005240
mov ecx, dword [esi]
mov dword [esp + 0x84], eax
call fcn.10004c70
mov ecx, eax
call fcn.10005220
mov dword [esp + 0x78], eax
test dword [esp + 0x3dc], 0x100
mov eax, dword [esp + 0x3d0]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], 2
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x54], 1
je 0x1004e282
cmp dword [esp + 0x3e4], 0
jne 0x1004e282
cmp eax, 0x104
jle 0x1004e1d9
or ebp, 0xffffffff
jmp 0x1004e4a1
cmp edi, 0x1e
jne 0x1004e17d
call fcn.10015bc0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x1004e4cb
mov eax, dword [esi + 4]
push eax
mov ecx, ebx
call fcn.10010370
mov ecx, dword [esi + 4]
push str.test
push 0
push ecx
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.100154f0
mov ebp, eax
test ebp, ebp
jne 0x1004e4cb
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], 0x10
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
jmp 0x1004e09e
cmp edi, 0xc
jne 0x1004e0a5
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x84], 8
call fcn.1007f540
mov eax, dword [ebx + 4]
push str._CORE__XWCipherSignData::signDataBase__if_mobisign__data_using_no_signedAttribute
push eax
call fcn.10077b60
mov ebx, dword [esp + 0x3ec]
add esp, 0xc
test bl, 4
je 0x1004e1bd
call fcn.1007f5f0
test ebx, 0x4000000
je 0x1004e0cc
mov dword [esp + 0x88], 1
jmp 0x1004e0cc
push eax
push ecx
lea ecx, [esp + 0xc4]
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
mov ebp, dword [sym.imp.MSVCR80.dll_strtok]
lea edx, [esp + 0xc8]
push 0x100a19d8
push edx
call ebp
push 0x100a19d8
push 0
mov ebx, eax
call ebp
push 0x100a19d8
push 0
mov dword [esp + 0x38], eax
call ebp
add esp, 0x24
test ebx, ebx
mov dword [esp + 0x4c], eax
je 0x1004e26c
cmp dword [esp + 0x14], 0
je 0x1004e26c
test eax, eax
je 0x1004e26c
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0xb8]
push ecx
call sub.XecureAcCSP.dll_XFA_CSP_GetHashInfo
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1004e4a1
mov ecx, dword [esp + 0x4c]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004e254
mov edx, dword [esp + 0xb4]
sub eax, ebx
add edx, edx
cmp edx, eax
je 0x1004e274
or ebp, 0xffffffff
jmp 0x1004e4a1
lea eax, [esp + 0x68]
push eax
push ecx
call sub.XecureAcCodec.dll_XFA_StrToBin
add esp, 8
mov ebx, dword [esp + 0x3e0]
and ebx, 0x800000
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 2
cmp edi, 4
mov dword [esp + 0x2c], ecx
je 0x1004e2ba
cmp edi, 0xc
je 0x1004e2ba
cmp edi, 0x1e
je 0x1004e2ba
mov ecx, dword [esi]
call fcn.10012ce0
mov ebp, dword [eax + 0x18]
jmp 0x1004e2bc
xor ebp, ebp
cmp edi, 0xc
je 0x1004e2d3
mov ecx, dword [esi]
push 1
call fcn.10004c70
mov ecx, eax
call fcn.100052e0
jmp 0x1004e2d5
xor eax, eax
test ebx, ebx
je 0x1004e2f7
lea edx, [esp + 0x50]
push edx
push eax
push ebp
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.10085f60
add esp, 0x14
jmp 0x1004e38f
cmp dword [esp + 0x3e4], 0
jne 0x1004e358
mov ebx, dword [esp + 0x3e0]
test ebx, 0x2000000
je 0x1004e318
mov dword [esp + 0x70], 1
test ebx, 0x10000
je 0x1004e328
mov dword [esp + 0x74], 1
mov edx, dword [esp + 0x3dc]
push edx
push 0
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push 0
push 0
push eax
push ebp
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.100844e0
add esp, 0x2c
jmp 0x1004e396
mov ecx, dword [esp + 0x3dc]
mov edx, dword [esp + 0x78]
push ecx
push edx
push 0
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0
push 0
push 0
push eax
push ebp
push 0
push 0
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.10084ba0
add esp, 0x38
mov ebx, dword [esp + 0x3e0]
mov ebp, eax
test ebp, ebp
je 0x1004e413
cmp edi, 4
jne 0x1004e3cf
mov ebx, dword [esp + 0x24]
mov ecx, ebx
call fcn.1000cfe0
push eax
mov ecx, ebx
call fcn.1000d010
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
push eax
push str._CORE__XWCipherSignData::signDataBase__PKCS11_error_:___d:_s_
push edx
call fcn.10077b60
add esp, 0x10
jmp 0x1004e4a6
cmp edi, 0x1e
jne 0x1004e4a1
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.10013a30
push eax
mov ecx, ebx
call fcn.1000d010
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push str._CORE__XWCipherSignData::signDataBase__SECUREDISK_error_:___d:_s_
push ecx
call fcn.10077b60
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x38]
add esp, 0x10
push edx
call fcn.10015580
jmp 0x1004e4ec
test ebx, 0x100
je 0x1004e453
mov ebx, dword [esp + 0x10]
add ebx, 4
lea edx, [esp + 0x34]
push ebx
push edx
call sub.XecureAcCodec.dll_XFA_BinToBase64
mov ebx, dword [ebx]
add esp, 8
test ebx, ebx
je 0x1004e4a1
mov eax, ebx
lea edx, [eax + 1]
jmp 0x1004e440
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004e440
mov ecx, dword [esp + 0x10]
sub eax, edx
mov dword [ecx], eax
jmp 0x1004e4a1
test ebx, 0x4000000
mov ebx, dword [esp + 0x10]
je 0x1004e475
lea edx, [esp + 0x34]
push edx
push ebx
call sub.XecureAcIO.dll_XFA_BIN_Copy
mov eax, dword [esp + 0x3c]
add esp, 8
mov dword [ebx], eax
jmp 0x1004e4a1
add ebx, 4
lea ecx, [esp + 0x34]
push ebx
push ecx
call sub.XecureAcCodec.dll_XFA_BinToStr
mov eax, dword [ebx]
add esp, 8
lea edx, [eax + 1]
jmp 0x1004e490
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004e490
sub eax, edx
mov edx, dword [esp + 0x10]
mov dword [edx], eax
cmp edi, 4
jne 0x1004e4c6
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x18]
push eax
mov ecx, ebx
call fcn.100101c0
test al, al
jne 0x1004e4ec
mov ecx, dword [esi + 4]
push ecx
mov ecx, ebx
call fcn.1000ffa0
jmp 0x1004e4ec
cmp edi, 0x1e
jne 0x1004e4da
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x28]
push edx
call fcn.10015580
jmp 0x1004e4ec
cmp edi, 0xc
jne 0x1004e4ec
lea eax, [esp + 0x70]
push eax
call fcn.1007f5b0
add esp, 4
cmp dword [0x100cd948], 0
je 0x1004e576
mov eax, dword [0x100cd944]
mov edi, edi
mov esi, dword [eax]
cmp esi, eax
jne 0x1004e50c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi + 8]
mov ebx, dword [esi]
test ebx, ebx
je 0x1004e525
mov ecx, ebx
call fcn.10012660
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call dword [sym.imp.MSVCR80.dll_free]
mov eax, dword [0x100cd944]
mov esi, dword [eax]
add esp, 4
cmp esi, eax
jne 0x1004e549
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [0x100cd944]
cmp esi, eax
je 0x1004e56d
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [ecx], edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push esi
mov dword [eax + 4], ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [0x100cd944]
add esp, 4
sub dword [0x100cd948], 1
cmp dword [0x100cd948], 0
jne 0x1004e500
cmp edi, 0xc
je 0x1004e588
lea edx, [esp + 0x34]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
add esp, 4
mov ecx, dword [esp + 0x3c0]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.10090e24
add esp, 0x3b4
ret 0x20