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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4925ad
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x4b6798]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, esp
push eax
lea eax, [esp + 0x4c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
xor edx, edx
mov dword [esp + 0x38], ecx
mov ebx, 7
mov ecx, eax
mov word [esp + 0x74], dx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edi
lea edx, [ecx + 2]
nop
mov si, word [ecx]
add ecx, 2
cmp si, di
jne 0x422c20
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [esp + 0x78]
call fcn.00409bc0
mov dword [esp + 0x4d0], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
xor eax, eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
mov word [esp + 0x58], ax
mov ecx, esi
push ecx
lea ecx, [esp + 0x28]
lea esi, [eax + 0xd]
mov byte [esp + 0x4d4], 2
call fcn.0046b5b0
mov ebx, dword [esp + 0x28]
add esp, 4
mov byte [esp + 0x13], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0x14], ebx
cmp ebx, dword [esp + 0x28]
je 0x4231e3
mov eax, dword [esp + 0x14]
push edi
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
mov word [esp + 0x44], dx
call fcn.004097e0
mov byte [esp + 0x4d0], 3
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x3c]
mov ecx, esi
cmp eax, 8
jae 0x422d69
lea ecx, [esp + 0x3c]
mov ebx, ecx
mov edx, dword [esp + 0x4c]
lea ebx, [ebx + edx*2]
cmp eax, 8
jae 0x422cec
lea esi, [esp + 0x3c]
cmp esi, ebx
je 0x422d0d
mov edi, ecx
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.00477e53
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x422cf4
xor edi, edi
lea eax, [esp + 0x3c]
call fcn.0046b9b0
call fcn.0046b920
push edi
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x44]
call fcn.004097e0
push 0xf
push str.x_ms_invokeapp:
lea ecx, [esp + 0x44]
push ecx
xor eax, eax
call fcn.00403340
test eax, eax
jne 0x422d70
push 0xf
push str.requirereadonly
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1f], 1
call fcn.00403340
cmp eax, 0xffffffff
je 0x422e22
mov byte [esp + 0x12], 1
jmp 0x422e22
mov ebx, esi
jmp 0x422cdc
push 0xd
push str.content_type:
lea eax, [esp + 0x44]
push eax
xor eax, eax
call fcn.00403340
lea edx, [esp + 0x3c]
test eax, eax
jne 0x422df2
push 0xffffffffffffffff
lea ecx, [eax + 0xd]
lea esi, [esp + 0x94]
call fcn.00402e20
mov edi, eax
lea esi, [esp + 0x58]
mov byte [esp + 0x4d0], 4
call fcn.004030e0
mov byte [esp + 0x4d0], 3
cmp dword [esp + 0xa4], 8
jb 0x422dd1
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004736d0
add esp, 4
lea eax, [esp + 0x58]
call fcn.0046b9b0
call fcn.0046b920
push 0
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x60]
call fcn.004097e0
xor edi, edi
jmp 0x422e22
push 0x14
push str.content_disposition:
push edx
xor eax, eax
call fcn.00403340
test eax, eax
jne 0x422e22
push 0xa
push str.attachment
lea eax, [esp + 0x44]
push eax
xor eax, eax
call fcn.00403340
cmp eax, 0xffffffff
je 0x422e22
mov byte [esp + 0x11], 1
mov byte [esp + 0x4d0], 2
cmp dword [esp + 0x50], 8
jb 0x422e3e
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004736d0
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0x1c
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x422c96
cmp byte [esp + 0x13], 0
je 0x4231df
cmp dword [esp + 0x68], edi
je 0x4231df
cmp byte [esp + 0x11], 0
jne 0x4231df
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
xor edx, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
push 0x1b
mov eax, str.MIMEDatabaseContent_Type_
lea esi, [esp + 0x40]
mov byte [esp + 0x4d4], 6
call fcn.00409bc0
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x60]
push eax
call fcn.004045f0
mov eax, dword [esp + 0x3c]
mov ebx, 8
cmp dword [esp + 0x50], ebx
jae 0x422ec8
mov eax, esi
push 0x20019
lea ecx, [esp + 0x1c]
push ecx
mov ecx, SysReAllocString
call fcn.0040f3d0
test eax, eax
je 0x422f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x50], ebx
jb 0x422ef9
mov edx, dword [esp + 0x3c]
push edx
call fcn.004736d0
add esp, 4
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
cmp eax, edi
je 0x4230da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4230da
push str.Extension
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0xb4]
mov dword [esp + 0x1c], 0x104
call fcn.00423960
test eax, eax
je 0x422f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x50], ebx
jb 0x422f63
mov edx, dword [esp + 0x3c]
push edx
call fcn.004736d0
add esp, 4
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
test eax, eax
je 0x4230d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4230d8
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp eax, ebx
je 0x422fa9
push eax
call edi
mov dword [esp + 0x18], ebx
push 0x20019
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0xb4]
mov ecx, SysReAllocString
mov dword [esp + 0x24], ebx
call fcn.0040f3d0
test eax, eax
je 0x422fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x3c]
call fcn.00403060
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4230d8
push eax
call edi
jmp 0x4230d8
push ebx
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x2bc]
mov dword [esp + 0x1c], 0x104
call fcn.00423960
test eax, eax
jne 0x4230c0
lea esi, [esp + 0x18]
call fcn.0040f550
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2b8]
call fcn.0040f150
lea ecx, [esp + 0x3c]
push ecx
mov edx, str._shell
call fcn.00403fa0
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x42304d
lea eax, [esp + 0x3c]
push 0x20019
lea edx, [esp + 0x1c]
push edx
mov ecx, SysReAllocString
call fcn.0040f3d0
test eax, eax
jne 0x4230c0
lea esi, [esp + 0x18]
call fcn.0040f550
mov edi, str.OpenAsReadOnly
cmp byte [esp + 0x12], bl
jne 0x42307e
mov edi, str.Open
lea eax, [esp + 0x3c]
push eax
mov edx, 0x49c478
call fcn.00403fa0
lea ecx, [esp + 0x3c]
push ecx
mov edx, edi
call fcn.00403fa0
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x4230a8
lea eax, [esp + 0x3c]
push 0x20019
lea edx, [esp + 0x1c]
push edx
mov ecx, SysReAllocString
call fcn.0040f3d0
test eax, eax
je 0x42313a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x3c]
call fcn.00403060
lea esi, [esp + 0x18]
call fcn.0040f580
xor edi, edi
mov ebx, 8
cmp dword [esp + 0x6c], ebx
jb 0x4230f2
mov eax, dword [esp + 0x58]
push eax
call fcn.004736d0
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], cx
cmp dword [esp + 0x24], edi
je 0x423123
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, esi
call fcn.00403f60
push esi
call fcn.004736d0
add esp, 4
cmp dword [esp + 0x88], ebx
jb 0x42325f
mov edx, dword [esp + 0x74]
push edx
jmp 0x423257
push 0x54
call fcn.004739eb
add esp, 4
cmp eax, ebx
je 0x423172
mov dword [eax + 0x10], ebx
mov ecx, 7
mov dword [eax + 0x14], ecx
xor edx, edx
mov word [eax], dx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x2c], ebx
mov word [eax + 0x1c], dx
mov dword [eax + 0x4c], ecx
xor ecx, ecx
mov dword [eax + 0x48], ebx
mov word [eax + 0x38], cx
mov esi, eax
jmp 0x423174
xor esi, esi
mov eax, dword [esp + 0x34]
push esi
call fcn.0040f150
lea edx, [esi + 0x1c]
push edx
mov eax, edi
call fcn.0040f150
lea eax, [esi + 0x38]
push eax
lea eax, [esp + 0xb0]
call fcn.0040f150
mov ecx, dword [esp + 0x38]
push ebx
push esi
push 0x83ea
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea esi, [esp + 0x3c]
call fcn.00403060
lea esi, [esp + 0x18]
call fcn.0040f580
lea esi, [esp + 0x58]
call fcn.00403060
lea esi, [esp + 0x24]
call fcn.00403030
lea esi, [esp + 0x74]
call fcn.00403060
mov al, 1
jmp 0x423261
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x6c], 8
jb 0x4231f7
mov edx, dword [esp + 0x58]
push edx
call fcn.004736d0
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], ax
cmp ebx, edi
je 0x423248
mov esi, ebx
cmp ebx, dword [esp + 0x28]
je 0x42323f
cmp dword [esi + 0x14], 8
jb 0x423227
mov ecx, dword [esi]
push ecx
call fcn.004736d0
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [esp + 0x28]
jne 0x423216
push ebx
call fcn.004736d0
add esp, 4
cmp dword [esp + 0x88], 8
jb 0x42325f
mov eax, dword [esp + 0x74]
push eax
call fcn.004736d0
add esp, 4
xor al, al
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.004736db
mov esp, ebp
pop ebp
ret