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

Disassembly:
sub esp, 0x3b4
mov eax, dword [0x100cc8ec]
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 0x1004d871
call fcn.10010860
test eax, eax
mov dword [esp + 0x18], eax
je 0x1004dbf6
mov ecx, dword [esi + 4]
push ecx
mov ecx, eax
call fcn.100102e0
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.10010070
test al, al
jne 0x1004d7dc
mov eax, dword [esi + 4]
push eax
mov ecx, ebp
call fcn.1000fdd0
mov ebp, eax
test ebp, ebp
jne 0x1004dbf6
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.10080710
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1004d718
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.10082cf0
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 0x1004d7bf
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.100807a0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1004d7dc
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.10082cf0
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 0x1004dbf6
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 0x1004d9d2
cmp dword [esp + 0x3e4], 0
jne 0x1004d9d2
cmp eax, 0x104
jle 0x1004d929
or ebp, 0xffffffff
jmp 0x1004dbf1
cmp edi, 0x1e
jne 0x1004d8cd
call fcn.100159d0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x1004dc1b
mov eax, dword [esi + 4]
push eax
mov ecx, ebx
call fcn.100102e0
mov ecx, dword [esi + 4]
push str.test
push 0
push ecx
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.100153c0
mov ebp, eax
test ebp, ebp
jne 0x1004dc1b
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], 0x10
call sym.XecureMacuxCSM.dll_private:_void___thiscall_XWFileUtility::constructor_void_
jmp 0x1004d7ee
cmp edi, 0xc
jne 0x1004d7f5
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x84], 8
call fcn.1007ebe0
mov eax, dword [ebx + 4]
push str._CORE__XWCipherSignData::signDataBase__if_mobisign__data_using_no_signedAttribute
push eax
call fcn.100772b0
mov ebx, dword [esp + 0x3ec]
add esp, 0xc
test bl, 4
je 0x1004d90d
call fcn.1007ec90
test ebx, 0x4000000
je 0x1004d81c
mov dword [esp + 0x88], 1
jmp 0x1004d81c
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 0x100a09d8
push edx
call ebp
push 0x100a09d8
push 0
mov ebx, eax
call ebp
push 0x100a09d8
push 0
mov dword [esp + 0x38], eax
call ebp
add esp, 0x24
test ebx, ebx
mov dword [esp + 0x4c], eax
je 0x1004d9bc
cmp dword [esp + 0x14], 0
je 0x1004d9bc
test eax, eax
je 0x1004d9bc
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 0x1004dbf1
mov ecx, dword [esp + 0x4c]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004d9a4
mov edx, dword [esp + 0xb4]
sub eax, ebx
add edx, edx
cmp edx, eax
je 0x1004d9c4
or ebp, 0xffffffff
jmp 0x1004dbf1
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 0x1004da0a
cmp edi, 0xc
je 0x1004da0a
cmp edi, 0x1e
je 0x1004da0a
mov ecx, dword [esi]
call fcn.10012c50
mov ebp, dword [eax + 0x18]
jmp 0x1004da0c
xor ebp, ebp
cmp edi, 0xc
je 0x1004da23
mov ecx, dword [esi]
push 1
call fcn.10004c70
mov ecx, eax
call fcn.100052e0
jmp 0x1004da25
xor eax, eax
test ebx, ebx
je 0x1004da47
lea edx, [esp + 0x50]
push edx
push eax
push ebp
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.10085620
add esp, 0x14
jmp 0x1004dadf
cmp dword [esp + 0x3e4], 0
jne 0x1004daa8
mov ebx, dword [esp + 0x3e0]
test ebx, 0x2000000
je 0x1004da68
mov dword [esp + 0x70], 1
test ebx, 0x10000
je 0x1004da78
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.10083ba0
add esp, 0x2c
jmp 0x1004dae6
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.10084260
add esp, 0x38
mov ebx, dword [esp + 0x3e0]
mov ebp, eax
test ebp, ebp
je 0x1004db63
cmp edi, 4
jne 0x1004db1f
mov ebx, dword [esp + 0x24]
mov ecx, ebx
call fcn.1000cf80
push eax
mov ecx, ebx
call fcn.1000cfb0
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.100772b0
add esp, 0x10
jmp 0x1004dbf6
cmp edi, 0x1e
jne 0x1004dbf1
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.10013990
push eax
mov ecx, ebx
call fcn.1000cfb0
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.100772b0
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x38]
add esp, 0x10
push edx
call fcn.10015450
jmp 0x1004dc3c
test ebx, 0x100
je 0x1004dba3
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 0x1004dbf1
mov eax, ebx
lea edx, [eax + 1]
jmp 0x1004db90
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004db90
mov ecx, dword [esp + 0x10]
sub eax, edx
mov dword [ecx], eax
jmp 0x1004dbf1
test ebx, 0x4000000
mov ebx, dword [esp + 0x10]
je 0x1004dbc5
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 0x1004dbf1
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 0x1004dbe0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004dbe0
sub eax, edx
mov edx, dword [esp + 0x10]
mov dword [edx], eax
cmp edi, 4
jne 0x1004dc16
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x18]
push eax
mov ecx, ebx
call fcn.10010070
test al, al
jne 0x1004dc3c
mov ecx, dword [esi + 4]
push ecx
mov ecx, ebx
call fcn.1000fe50
jmp 0x1004dc3c
cmp edi, 0x1e
jne 0x1004dc2a
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x28]
push edx
call fcn.10015450
jmp 0x1004dc3c
cmp edi, 0xc
jne 0x1004dc3c
lea eax, [esp + 0x70]
push eax
call fcn.1007ec50
add esp, 4
cmp dword [0x100cc948], 0
je 0x1004dcc6
mov eax, dword [0x100cc944]
mov edi, edi
mov esi, dword [eax]
cmp esi, eax
jne 0x1004dc5c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esi + 8]
mov ebx, dword [esi]
test ebx, ebx
je 0x1004dc75
mov ecx, ebx
call fcn.100125d0
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 [0x100cc944]
mov esi, dword [eax]
add esp, 4
cmp esi, eax
jne 0x1004dc99
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [0x100cc944]
cmp esi, eax
je 0x1004dcbd
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 [0x100cc944]
add esp, 4
sub dword [0x100cc948], 1
cmp dword [0x100cc948], 0
jne 0x1004dc50
cmp edi, 0xc
je 0x1004dcd8
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.10090524
add esp, 0x3b4
ret 0x20