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

Disassembly:
push 0xffffffffffffffff
push 0x10260376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
lea eax, [esi + 0x14]
lea ecx, [esp + 0xf4]
push eax
mov dword [esp + 0x58], esi
call fcn.1009ee90
mov ebp, dword [esp + 0x188]
xor edi, edi
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov dword [esp + 0x184], edi
call fcn.10096580
mov ebx, dword [esp + 0x190]
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.1009e050
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x38], edi
test eax, eax
je 0x1005a39d
lea ecx, [esp + 0x90]
call fcn.10055000
lea ecx, [esp + 0x90]
mov byte [esp + 0x17c], 1
push ecx
mov ecx, esi
call fcn.1005b710
test eax, eax
mov eax, dword [0x1030ceb0]
je 0x1005a36c
test eax, eax
je 0x100598f6
mov edx, dword [esp + 0xe0]
push edx
push str.ReorganizeDWMMailAtt_Attach_count__lu_
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x34], 0
test eax, eax
jle 0x1005a389
mov edi, dword [esp + 0x18c]
xor esi, esi
mov eax, dword [esp + 0xdc]
lea ecx, [esi + eax + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.100901f0
mov eax, dword [esp + 0xdc]
mov byte [esp + 0x17c], 2
test byte [esi + eax + 0x10], 0x10
je 0x10059956
lea edx, [esi + eax + 0x24]
lea ecx, [esp + 0x10]
push edx
call fcn.10090d80
mov eax, dword [esp + 0xdc]
mov ecx, dword [0x1030ceb0]
test ecx, ecx
je 0x1005999d
mov ecx, dword [esi + eax + 0x28]
mov edx, dword [esi + eax + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esi + eax + 0x18]
push ecx
mov ecx, dword [esi + eax + 0x10]
push edx
mov edx, dword [esi + eax]
push ecx
push edx
push str.ReorganizeDWMMailAtt__Index:_d__Status:_d__Src:_s__Dec:_s__Dwm:_s__encryptxml_s_
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
mov eax, dword [esp + 0x104]
add esp, 0x28
mov ecx, dword [esi + eax + 0x10]
test cl, 0x10
je 0x10059dbf
test cl, 0x20
je 0x10059dbf
mov ecx, dword [esp + 0x184]
test ecx, ecx
je 0x1005a33a
lea eax, [esi + eax + 0x1c]
lea ecx, [esp + 0x30]
push eax
call fcn.100901f0
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x54]
push ecx
push edx
mov byte [esp + 0x184], 3
call fcn.1006c830
add esp, 8
mov eax, dword [esp + 0x30]
mov byte [esp + 0x17c], 4
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10059a41
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10059a1f
push str.ReorganizeDWMMailAtt__DWM__szDecryptPath_is_empty
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0x17c], 3
call fcn.10090bf0
mov byte [esp + 0x17c], 2
lea ecx, [esp + 0x30]
jmp 0x1005a335
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.10056310
mov edx, dword [0x1026e87c]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0x58]
mov byte [esp + 0x17c], 6
mov ecx, dword [esi + eax]
lea eax, [esp + 0x40]
push ecx
push edx
push str._s_luencrypt
push eax
call fcn.10093b70
mov ecx, dword [esp + 0x50]
push 0
push ecx
call fcn.100b83a0
mov edx, dword [0x1026e87c]
add esp, 0x18
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0x40]
mov byte [esp + 0x17c], 7
mov ecx, dword [esi + eax + 0x14]
lea eax, [esp + 0x20]
push ecx
push edx
push 0x102ba7a8
push eax
call fcn.10093b70
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0x30]
push 1
push edx
mov eax, dword [esi + ecx + 0x18]
push eax
call fcn.1006d160
add esp, 0x1c
mov dword [esp + 0x48], 0
call fcn.100641b0
mov edi, eax
test edi, edi
mov dword [esp + 0x70], edi
je 0x10059c11
mov eax, dword [esp + 0x30]
push 1
push eax
push edi
call fcn.10064210
add esp, 0xc
test eax, eax
je 0x10059c3c
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0xdc]
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x180], 8
mov eax, dword [esi + ecx + 0x28]
push eax
call fcn.1005bcc0
mov eax, dword [esp + 0x6c]
add esp, 8
test eax, eax
mov dword [esp + 0x5c], 0
jle 0x10059bab
mov edx, dword [esp + 0x194]
lea ecx, [esp + 0x60]
lea eax, [esp + 0x20]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x198]
lea ecx, [esp + 0x80]
mov dword [esp + 0x88], edx
push ecx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x24]
push 0x10063f40
lea edx, [esp + 0x64]
push 0x1005da50
push edx
push eax
push edi
call fcn.10064300
add esp, 0x18
jmp 0x10059bbe
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
push ecx
push edx
push edi
call fcn.100642d0
add esp, 0xc
test eax, eax
mov dword [esp + 0x48], eax
je 0x10059c64
mov edi, dword [esp + 0x60]
mov byte [esp + 0x17c], 7
test edi, edi
je 0x10059cc6
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10059c03
mov dword [esp + 0x74], eax
mov ecx, edi
call fcn.1005c500
mov eax, dword [esp + 0x74]
add edi, 0x34
dec eax
mov dword [esp + 0x74], eax
jne 0x10059bea
mov edi, dword [esp + 0x60]
push edi
call fcn.1024cbfa
add esp, 4
jmp 0x10059cc6
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10059cfe
push str.ReorganizeDWMMailAtt__DWM__failed_CreateInstance
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
jmp 0x10059cc6
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10059cfe
push str.ReorganizeDWMMailAtt__DWM__failed_open
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
jmp 0x10059cc6
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10059c8b
mov eax, dword [esp + 0x5c]
push eax
push str.ReorganizeDWMMailAtt__DWM__failed_pack__err_d_
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
mov edi, dword [esp + 0x60]
mov byte [esp + 0x17c], 7
test edi, edi
je 0x10059cc6
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10059cb6
lea ebp, [eax]
mov ecx, edi
call fcn.1005c500
add edi, 0x34
dec ebp
jne 0x10059ca5
mov edi, dword [esp + 0x60]
push edi
call fcn.1024cbfa
mov ebp, dword [esp + 0x18c]
add esp, 4
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10059cfe
mov ecx, dword [esp + 0xdc]
mov eax, dword [esp + 0x20]
mov edx, dword [esi + ecx + 0x14]
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push str.ReorganizeDWMMailAtt__DWM___pack_d___s___s_
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x1c
mov eax, dword [esp + 0x70]
test eax, eax
je 0x10059d17
mov edi, eax
push edi
call fcn.10064240
push edi
call fcn.100641d0
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10059d65
mov eax, dword [ebp + 4]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, ebp
call fcn.10096b20
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0x18c]
mov ecx, dword [edx + 4]
lea eax, [esi + eax + 0x14]
push eax
push ecx
mov ecx, edx
call fcn.10096b20
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 4]
push ecx
push eax
mov ecx, ebx
call fcn.1009e270
mov dword [esp + 0x38], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], 6
call fcn.10090bf0
lea ecx, [esp + 0x40]
mov byte [esp + 0x17c], 5
call fcn.10090bf0
lea ecx, [esp + 0x58]
mov byte [esp + 0x17c], 4
call fcn.10090bf0
lea ecx, [esp + 0x54]
mov byte [esp + 0x17c], 3
call fcn.10090bf0
lea ecx, [esp + 0x30]
mov byte [esp + 0x17c], 2
call fcn.10090bf0
jmp 0x1005a2ab
lea edx, [esi + eax + 0x20]
lea ecx, [esp + 0x18]
push edx
call fcn.100901f0
mov eax, dword [esp + 0x18]
mov byte [esp + 0x17c], 9
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1005a329
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1006c830
add esp, 8
mov eax, dword [esp + 0x184]
mov byte [esp + 0x17c], 0xa
test eax, eax
jne 0x10059e49
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.10096b20
mov edx, dword [esp + 0xdc]
mov ecx, dword [edi + 4]
lea eax, [esi + edx + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.10096b20
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 4]
push ecx
push eax
mov ecx, ebx
call fcn.1009e270
mov dword [esp + 0x38], 1
jmp 0x1005a318
mov edx, dword [esp + 0xdc]
lea ecx, [esp + 0x1c]
lea eax, [esi + edx + 0x18]
push eax
call fcn.100901f0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x17c], 0xb
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1005a2c8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx - 8]
test edx, edx
je 0x1005a2c8
push ecx
push eax
call fcn.10079579
add esp, 8
test eax, eax
je 0x1005a2c8
mov ecx, dword [esp + 0xdc]
mov eax, dword [esi + ecx + 0x10]
mov edx, eax
and edx, 1
cmp dl, 1
jne 0x1005a307
test al, 2
jne 0x1005a307
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.1006c830
mov edx, dword [esp + 0x34]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov byte [esp + 0x1ac], 0xc
call fcn.10132900
add esp, 0x30
test eax, eax
jne 0x10059f29
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x10059f13
push str.ReorganizeDWMMailAtt_Err___
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17c], 0xb
call fcn.10090bf0
jmp 0x1005a307
lea ecx, [esp + 0x28]
call fcn.100a4db0
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 0xd
call fcn.100a4db0
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov byte [esp + 0x188], 0xe
call fcn.10059630
test eax, eax
je 0x10059f9f
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 0xd
call fcn.100a4f10
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 0xc
call fcn.100a4f10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17c], 0xb
call fcn.10090bf0
jmp 0x1005a307
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0xfd]
mov byte [esp + 0xfc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x28]
stosb byte es:[edi], al
call fcn.100a4fb0
test eax, eax
jbe 0x10059fd6
lea ecx, [esp + 0x28]
call fcn.100a56b0
mov ebp, eax
test ebp, ebp
jne 0x10059fdd
lea ebp, [esp + 0xfc]
xor eax, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call fcn.100a4fb0
test eax, eax
jbe 0x1005a003
lea ecx, [esp + 0x24]
call fcn.100a56b0
mov edi, eax
test edi, edi
jne 0x1005a007
lea edi, [esp + 0x78]
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1005a02b
push edi
push ebp
push str.ReorganizeDWMMailAtt_SDInfo___08x___08x_
push str.MailInfo
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
push eax
call fcn.10056310
mov ecx, dword [0x1026e87c]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x17c], 0x10
mov eax, dword [esi + edx]
lea edx, [esp + 0x3c]
push eax
push ecx
push str._s_luencrypt
push edx
call fcn.10093b70
mov eax, dword [esp + 0x4c]
push 0
push eax
call fcn.100b83a0
mov ecx, dword [0x1026e87c]
add esp, 0x18
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x17c], 0x11
mov eax, dword [esi + edx + 0x14]
lea edx, [esp + 0x44]
push eax
push ecx
push 0x102ba7a8
push edx
call fcn.10093b70
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
push edi
push 0
push 0
push 0
push ebp
push 0
push eax
push ecx
call fcn.10134cd0
push 0
push 0
mov edi, eax
call fcn.10132410
add esp, 0x38
test edi, edi
je 0x1005a1c0
mov ecx, dword [0x1030ceb0]
test ecx, ecx
je 0x1005a103
mov edx, dword [esp + 0x14]
push eax
push edx
push str.ReorganizeDWMMailAtt_fail_to_Encrypt_File__s__error_0x_x_
push str.MailInfo
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
lea ecx, [esp + 0x44]
mov byte [esp + 0x17c], 0x10
call fcn.10090bf0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 0xf
call fcn.10090bf0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x17c], 0xe
call fcn.10090bf0
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 0xd
call fcn.100a4f10
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 0xc
call fcn.100a4f10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17c], 0xb
call fcn.10090bf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xa
call fcn.10090bf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 9
call fcn.10090bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 2
call fcn.10090bf0
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 1
call fcn.10090bf0
mov ebp, dword [esp + 0x188]
mov edi, dword [esp + 0x18c]
jmp 0x1005a34b
mov ecx, dword [esp + 0x188]
lea edx, [esp + 0x44]
push edx
mov eax, dword [ecx + 4]
push eax
call fcn.10096b20
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0x18c]
mov ecx, dword [edx + 4]
lea eax, [esi + eax + 0x14]
push eax
push ecx
mov ecx, edx
call fcn.10096b20
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 4]
push ecx
push eax
mov ecx, ebx
call fcn.1009e270
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 1
mov byte [esp + 0x17c], 0x10
call fcn.10090bf0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x17c], 0xf
call fcn.10090bf0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x17c], 0xe
call fcn.10090bf0
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 0xd
call fcn.100a4f10
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 0xc
call fcn.100a4f10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17c], 0xb
call fcn.10090bf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xa
call fcn.10090bf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 9
call fcn.10090bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 2
call fcn.10090bf0
mov ebp, dword [esp + 0x188]
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 1
call fcn.10090bf0
mov edi, dword [esp + 0x18c]
jmp 0x1005a34b
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.10096b20
mov eax, dword [esp + 0xdc]
mov ecx, dword [edi + 4]
lea eax, [esi + eax + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.10096b20
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 4]
push ecx
push eax
mov ecx, ebx
call fcn.1009e270
mov dword [esp + 0x38], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xa
call fcn.10090bf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 9
call fcn.10090bf0
mov byte [esp + 0x17c], 2
lea ecx, [esp + 0x18]
call fcn.10090bf0
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 1
call fcn.10090bf0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xe0]
inc eax
add esi, 0x30
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x10059916
mov edi, dword [esp + 0x38]
jmp 0x1005a389
test eax, eax
je 0x1005a389
push str.ReorganizeDWMMailAtt_Get_MailInfo_fail
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x10
lea ecx, [esp + 0x90]
mov byte [esp + 0x17c], 0
call fcn.100550c0
mov edx, dword [0x1030ceb0]
test edx, edx
je 0x1005a40d
mov ecx, dword [ebp + 4]
mov eax, dword [ebx + 4]
cmp ecx, eax
jne 0x1005a3ef
xor esi, esi
test eax, eax
jle 0x1005a3ef
test edx, edx
je 0x1005a3e7
mov edx, dword [ebp]
mov ecx, dword [ebx]
mov eax, dword [edx + esi*4]
mov edx, dword [ecx + esi*4]
push eax
push edx
push str.ReorganizeDWMMailAtt_Arr___d___s_
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
mov edx, dword [0x1030ceb0]
add esp, 0x18
mov eax, dword [ebx + 4]
inc esi
cmp esi, eax
jl 0x1005a3b7
test edx, edx
je 0x1005a40d
push edi
push str.ReorganizeDWMMailAtt_bRet__d_
push str.MailInfo
push 4
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
lea ecx, [esp + 0xf0]
mov dword [esp + 0x17c], 0xffffffff
call fcn.1009eef0
mov ecx, dword [esp + 0x174]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret 0x18