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

Disassembly:
push 0xffffffffffffffff
push 0x100443e1
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1005e3c8]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.xwmfUI.dll_public:_static_class_XFClientUI____cdecl_XFClientUI::getInstance_void_]
xor ebx, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0xd8]
push eax
mov byte [esp + 0xc4], 1
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
mov dword [esp + 0x70], ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ecx
mov ecx, dword [ebp + 0x58]
imul eax, eax, 0x64
add esp, 4
mov dword [esp + 0x60], eax
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::resetError_void_]
mov esi, dword [esp + 0xd0]
cmp esi, ebx
je 0x1003720e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10036990
sub eax, edx
je 0x1003720e
mov edx, dword [esp + 0xe4]
cmp edx, ebx
je 0x100369de
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100369b1
sub eax, edi
je 0x100369de
push edx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x5c]
push eax
mov ecx, ebp
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::readFile_unsigned_char____unsigned_int___char_const__
cmp eax, ebx
je 0x100369de
push str._NativeFCMSWrapper__signFile__Fail_:_PFX_File_open_fail
jmp 0x10037221
push esi
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x100466ec
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0xa4]
push eax
mov ecx, ebp
mov byte [esp + 0xcc], 3
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::splitList_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x24]
cmp esi, ebx
mov ecx, dword [esp + 0x28]
jne 0x10036a61
xor edi, edi
jmp 0x10036a78
mov edi, ecx
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, dword [esp + 0xf0]
and eax, 0x40
mov dword [esp + 0x58], edi
mov dword [esp + 0x64], eax
jne 0x10036c46
mov eax, dword [esp + 0xf0]
test eax, 0x20000
je 0x10036acf
push str..xws
lea ecx, [esp + 0x34]
push ecx
sub esp, 0x10
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.10034510
mov eax, dword [esp + 0xe4]
push eax
mov ecx, ebp
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::makeTempFilePathList_char_const___class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_______char_const__
jmp 0x10036bfd
test eax, 0x10000
je 0x10036bca
mov edx, dword [esp + 0xd4]
cmp edx, ebx
je 0x10036b75
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10036af0
sub eax, esi
je 0x10036b75
push edx
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov bl, 5
push 0x100466ec
lea ecx, [esp + 0x80]
mov byte [esp + 0xc4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, ebp
mov byte [esp + 0xcc], 6
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::splitList_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc0], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x10036bfb
push str..xws
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x80]
push edx
sub esp, 0x10
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0xdc], 4
call fcn.10034510
mov ecx, ebp
call sym.NativeMng.dll__parseFileList_NativeFCMSWrapper__QAEHV__vector_V__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__V_
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x10036bfd
lea ecx, [esp + 0x30]
push ecx
sub esp, 0x10
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.10034510
push str..xws
push str.sign_files__.xws__.xws_All_Files__.__._
mov ecx, ebp
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::selectFileList_char___char___class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______
cmp eax, ebx
jne 0x1003722a
xor ebx, ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x10036c09
xor eax, eax
jmp 0x10036c22
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
je 0x10036c3e
mov ecx, dword [ebp + 0x58]
push 0x9896ef
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_:_Count_the_number_of_input_files_and_output_files_are_different
jmp 0x10037221
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0xf0]
and eax, 0x80000
mov dword [esp + 0x70], eax
jne 0x10036c6a
mov ecx, dword [esp + 0x48]
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::initProgress_void_]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp edi, ebx
mov dword [esp + 0x18], ebx
jle 0x1003702b
xor edi, edi
mov dword [esp + 0x5c], edi
lea esp, [esp]
cmp esi, ebx
je 0x10036c9f
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x10036ca9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
cmp dword [esi + edi + 0x18], 0x10
jb 0x10036cb6
mov esi, dword [esi + edi + 4]
jmp 0x10036cba
lea esi, [esi + edi + 4]
mov eax, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10036cc7
sub eax, edx
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0xfde9
mov ecx, ebp
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_MultiByteToWideChar_unsigned_int__wchar_t____int___char___int_
cmp eax, ebx
jne 0x10036f98
mov esi, dword [esp + 0x40]
push 4
push esi
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
cmp esi, ebx
mov edi, eax
je 0x10036d12
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp edi, ebx
jne 0x10036f98
cmp dword [esp + 0x64], ebx
jne 0x10036e19
test dword [esp + 0xf0], 0x40000
je 0x10036dae
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
call fcn.1002e7c0
cmp dword [eax + 0x18], 0x10
jb 0x10036d4a
mov ecx, dword [eax + 4]
jmp 0x10036d4d
lea ecx, [eax + 4]
mov eax, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], ebx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10036d60
sub eax, esi
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0xfde9
mov ecx, ebp
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_MultiByteToWideChar_unsigned_int__wchar_t____int___char___int_
cmp eax, ebx
jne 0x10036dae
mov esi, dword [esp + 0x40]
push ebx
push esi
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
cmp esi, ebx
mov edi, eax
je 0x10036da6
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
cmp edi, ebx
je 0x10036fb0
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x34]
call fcn.1002e7c0
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x10036dcb
mov eax, dword [eax + 4]
jmp 0x10036dce
add eax, 4
push 2
push eax
push 0xfde9
mov ecx, ebp
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_File_Access_unsigned_int__char_const___int_
test eax, eax
je 0x10036e22
mov ecx, dword [ebp + 0x58]
push 0x989714
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push esi
lea ecx, [esp + 0x34]
call fcn.1002e7c0
cmp dword [eax + 0x18], edi
jb 0x10036fc8
mov eax, dword [eax + 4]
push eax
push str._NativeFCMSWrapper__signFile__Fail_:_Output_fils_write_fail__s_
push ebp
call sym.NativeMng.dll_public:_void___cdecl_NativeFCMSWrapper::logDebug_char_const__
add esp, 0xc
jmp 0x1003722a
mov esi, dword [esp + 0x18]
mov edi, 0x10
push esi
lea ecx, [esp + 0x24]
call fcn.1002e7c0
cmp dword [eax + 0x18], edi
jb 0x10036e36
mov eax, dword [eax + 4]
jmp 0x10036e39
add eax, 4
lea edx, [esp + 0x4c]
push edx
push eax
push 0xfde9
mov ecx, ebp
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_GetFileSize_unsigned_int__char_const___long_long___int64___
test eax, eax
jne 0x10036fdf
cmp dword [esp + 0x50], ebx
jg 0x10036ff7
mov ebx, dword [esp + 0x4c]
jl 0x10036e6c
cmp ebx, 0xffffffff
ja 0x10036ff7
cmp dword [esp + 0x70], 0
jne 0x10036f67
cmp dword [esp + 0x64], 0
lea ecx, [esp + 0x20]
jne 0x10036f2c
mov eax, dword [esp + 0x18]
push eax
call fcn.1002e7c0
cmp dword [eax + 0x18], 0x10
jb 0x10036e9b
mov ebp, dword [eax + 4]
jmp 0x10036e9e
lea ebp, [eax + 4]
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x34]
call fcn.1002e7c0
cmp dword [eax + 0x18], 0x10
jb 0x10036eb7
mov edi, dword [eax + 4]
jmp 0x10036eba
lea edi, [eax + 4]
push esi
lea ecx, [esp + 0x24]
call fcn.1002e7c0
cmp dword [eax + 0x18], 0x10
jb 0x10036ecf
mov esi, dword [eax + 4]
jmp 0x10036ed2
lea esi, [eax + 4]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x58]
push ebp
call dword [sym.imp.XecureMacuxCSM.dll_public:_int___thiscall_XWClientSM::isSignedFile_char_const__]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
neg eax
sbb eax, eax
add eax, 2
push eax
mov eax, dword [esp + 0x1c]
push edx
push ebx
push edi
push esi
push eax
push 0xfde9
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::addProgressFile_unsigned_int__int__char_const___char_const___long_long___int64___unsigned_long_int_]
test eax, eax
je 0x10036f67
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x58]
push 0x9896a2
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_to_XFClientUI
push esi
call sym.NativeMng.dll_public:_void___cdecl_NativeFCMSWrapper::logDebug_char_const__
mov ebp, esi
jmp 0x10037227
mov esi, dword [esp + 0x18]
push esi
call fcn.1002e7c0
cmp dword [eax + 0x18], 0x10
jb 0x10036f41
mov eax, dword [eax + 4]
jmp 0x10036f44
add eax, 4
mov ecx, dword [esp + 0x50]
push 1
push ecx
mov ecx, dword [esp + 0x50]
push ebx
push 0
push eax
push esi
push 0xfde9
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::addProgressFile_unsigned_int__int__char_const___char_const___long_long___int64___unsigned_long_int_]
test eax, eax
jne 0x1003700f
mov eax, dword [esp + 0x18]
add dword [esp + 0x5c], 0x1c
add eax, 1
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
jge 0x1003702b
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x5c]
xor ebx, ebx
jmp 0x10036c80
mov ecx, dword [ebp + 0x58]
push 0x9896f2
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_:_Input_File_open_fail
jmp 0x10037221
mov ecx, dword [ebp + 0x58]
push 0x989713
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_:_Output_file_already_exist
jmp 0x10037221
add eax, 4
push eax
push str._NativeFCMSWrapper__signFile__Fail_:_Output_fils_write_fail__s_
push ebp
call sym.NativeMng.dll_public:_void___cdecl_NativeFCMSWrapper::logDebug_char_const__
add esp, 0xc
jmp 0x1003722a
mov ecx, dword [ebp + 0x58]
push 0x9896f2
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_:_Failed_to_get_the_file_size
jmp 0x10037221
mov ecx, dword [ebp + 0x58]
push 0x989715
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_:_The_file_size_is_greater_than_3.9GB_4_294_967_295_byte_
jmp 0x10037221
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x58]
push 0x9896a2
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_to_XFClientUI
jmp 0x10037221
mov edi, dword [esp + 0x60]
cmp edi, 0x190
mov ebx, dword [esp + 0xe8]
mov ebp, dword [esp + 0x1c]
jne 0x100370ca
mov ecx, dword [ebp + 0x58]
push 1
push 0
push 0x190
call dword [sym.imp.XecureMacuxCSM.dll_public:_char____thiscall_XWClientSM::getMediaList_int__int__int_]
test eax, eax
mov dword [esp + 0x44], eax
je 0x100370a4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10037063
sub eax, edx
je 0x100370a4
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x58]
push ebx
push edx
call dword [sym.imp.XecureMacuxCSM.dll_public:_int___thiscall_XWClientSM::loginPKCS11_int__char_const__]
test eax, eax
je 0x100370d9
mov ecx, dword [ebp + 0x58]
push 0x9896fa
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_to_loginPKCS11
push ebp
call sym.NativeMng.dll_public:_void___cdecl_NativeFCMSWrapper::logDebug_char_const__
add esp, 8
jmp 0x10037234
mov ecx, dword [ebp + 0x58]
push 0x98bd9e
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push 0x190
push str._NativeFCMSWrapper__signFile__Fail_to_getMediaList__d_
push ebp
call sym.NativeMng.dll_public:_void___cdecl_NativeFCMSWrapper::logDebug_char_const__
add esp, 0xc
jmp 0x10037234
cmp edi, 0x44c
jne 0x100370d9
mov ecx, ebp
call sym.NativeMng.dll_public:_int___thiscall_NativeFCMSWrapper::getCertFromFileMap_void_
push 0x48
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xc0], 7
je 0x100370fe
mov ecx, eax
call fcn.10034730
mov esi, eax
jmp 0x10037100
xor esi, esi
push 0x48
push 0
push esi
mov byte [esp + 0xcc], 1
mov dword [esp + 0x84], esi
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xe4]
mov dword [esi], eax
mov eax, dword [esp + 0xe8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x80]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xec]
add esp, 0xc
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 0x10], ecx
jbe 0x10037162
mov edx, dword [esp + 0x54]
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
cmp edi, 0x190
je 0x1003716d
mov dword [esi + 0x1c], ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x20]
call fcn.10035d30
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x30]
call fcn.10035d30
cmp dword [esp + 0x70], 0
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0xf0]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ebx
jne 0x10037206
mov edx, dword [esp + 0xec]
test edx, edx
je 0x100371bf
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100371b0
sub eax, edi
mov eax, edx
jne 0x100371c4
mov eax, str.Sign_File
push ebx
push esi
push sym.NativeMng.dll_protected:_static_unsigned_int___stdcall_NativeFCMSWrapper::SignFileThread_void__
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x78]
push edx
push eax
push str.AnySign_for_PC_FCMS
push 0xfde9
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::progressDialog_unsigned_int__char_const___char_const___void____unsigned_long_int___unsigned_int____stdcall___void____void___int_]
test eax, eax
je 0x1003722a
mov ecx, dword [ebp + 0x58]
push 0x9896a2
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_to_XFClientUI
jmp 0x10037221
push esi
call sym.NativeMng.dll_protected:_static_unsigned_int___stdcall_NativeFCMSWrapper::SignFileThread_void__
jmp 0x1003722a
mov ecx, dword [ebp + 0x58]
push 0x9896ef
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
push str._NativeFCMSWrapper__signFile__Fail_:_aPlainFilePath_is_null
push ebp
call sym.NativeMng.dll_public:_void___cdecl_NativeFCMSWrapper::logDebug_char_const__
add esp, 8
cmp dword [esp + 0x60], 0x190
jne 0x10037242
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x58]
push eax
call dword [sym.imp.XecureMacuxCSM.dll_public:_int___thiscall_XWClientSM::finalizePKCS11FromIndex_int_]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10037254
push eax
call dword [sym.imp.XecureMacuxCSM.dll_public:_static_void___cdecl_XWClientSM::free_void__]
add esp, 4
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 4]
jb 0x10037262
mov eax, dword [esi + 4]
jmp 0x10037265
lea eax, [esi + 4]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
push 0x10046637
mov ecx, esi
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x1003728f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x78]
test esi, esi
je 0x100372a7
mov ecx, esi
call fcn.10034780
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x24]
test edi, edi
je 0x10037306
mov ebx, dword [esp + 0x28]
mov ecx, ebx
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x10037306
cmp edi, ebx
mov ebp, ebx
jbe 0x100372e0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, ebx
lea esi, [esp + 0x20]
jbe 0x100372ee
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebp
push esi
lea eax, [esp + 0x28]
push edi
push eax
lea edx, [esp + 0x5c]
push edx
mov ecx, eax
call fcn.100346b0
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov ebp, dword [esp + 0x38]
je 0x1003736f
mov esi, ebp
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1003736f
cmp ecx, ebp
mov ebx, ebp
jbe 0x1003733f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
lea esi, [esp + 0x30]
mov edi, ecx
jbe 0x1003734f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
push esi
lea eax, [esp + 0x38]
push edi
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.100346b0
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
xor ebx, ebx
cmp eax, ebx
je 0x1003738f
push eax
call dword [sym.imp.MSVCR80.dll_free]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add esp, 4
cmp ecx, ebx
mov byte [esp + 0xc0], 0
je 0x100373c1
cmp ecx, ebp
mov esi, ecx
je 0x100373b4
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add esi, 0x1c
cmp esi, ebp
jne 0x100373a1
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edi, dword [esp + 0x28]
add esp, 4
cmp edi, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xc0], 0xffffffff
je 0x10037402
mov ebp, dword [esp + 0x28]
cmp edi, ebp
mov esi, edi
je 0x100373f9
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add esi, 0x1c
cmp esi, ebp
jne 0x100373e6
mov edi, dword [esp + 0x24]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 0x2c