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

Disassembly:
push 0xffffffffffffffff
push 0x1025e3db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], 0
call fcn.10040fb0
lea eax, [esp + 0x7c]
mov byte [esp + 0x74], 1
push eax
call fcn.10039cb0
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x100404b0
mov ebp, dword [eax + edx*4]
test ebp, ebp
je 0x100404b0
lea ecx, [esp + 0x7c]
lea edx, [ebp + 8]
push ecx
push edx
call fcn.10039c90
add esp, 8
test eax, eax
jne 0x10040544
mov ebp, dword [ebp]
test ebp, ebp
jne 0x10040490
lea edx, [esi + 0x1c]
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.1009ee90
lea eax, [esp + 0x7c]
mov byte [esp + 0x74], 2
push eax
call fcn.10039cb0
xor edx, edx
div dword [esi + 0x40]
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x10040501
mov ebp, dword [esi + edx*4]
test ebp, ebp
je 0x10040501
lea ecx, [esp + 0x7c]
lea edx, [ebp + 8]
push ecx
push edx
call fcn.10039c90
add esp, 8
test eax, eax
jne 0x10040593
mov ebp, dword [ebp]
test ebp, ebp
jne 0x100404e1
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 1
call fcn.1009eef0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 0
call fcn.10040fe0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.10039d00
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10
test ebp, ebp
je 0x100404b0
mov eax, dword [ebp + 0x14]
lea esi, [ebp + 0x18]
mov ecx, 8
lea edi, [esp + 0x34]
mov dword [esp + 0x30], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [esp + 0x58]
call fcn.10090d80
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x58], edx
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x5c], eax
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x60], ecx
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x64], edx
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x68], ecx
jmp 0x100405f2
test ebp, ebp
je 0x10040501
mov eax, dword [ebp + 0x14]
lea esi, [ebp + 0x18]
mov ecx, 8
lea edi, [esp + 0x34]
mov dword [esp + 0x30], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [esp + 0x58]
call fcn.10090d80
mov edx, dword [ebp + 0x3c]
mov byte [esp + 0x74], 1
mov dword [esp + 0x58], edx
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x5c], eax
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x60], ecx
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x64], edx
mov eax, dword [ebp + 0x4c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x68], eax
call fcn.1009eef0
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
je 0x100406a2
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.1009ee90
mov eax, dword [esp + 0x58]
mov byte [esp + 0x74], 3
test eax, eax
je 0x10040694
push 0x10
call fcn.1024cbd1
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x74], 4
je 0x1004065b
mov edi, dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x234
push str.G:WorkshopAgentDevelopProjCodePreReleaseTMailGatewayV4PreReleaseTMailGatewaySDAgent_DevelopPackShareMemoryMgr.cpp
push eax
mov ecx, edi
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call fcn.1009f2f0
mov dword [esi + 0xc], eax
jmp 0x1004065d
xor esi, esi
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0xc]
push edx
mov byte [esp + 0x78], 3
mov dword [ecx], esi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], 0
call fcn.100bc7e0
mov esi, eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x10040694
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 1
call fcn.1009eef0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 0
call fcn.10040fe0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.10039d00
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10