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

Disassembly:
push 0xffffffffffffffff
push 0x1025c45b
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.10040c00
lea eax, [esp + 0x7c]
mov byte [esp + 0x74], 1
push eax
call fcn.10039900
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x10040100
mov ebp, dword [eax + edx*4]
test ebp, ebp
je 0x10040100
lea ecx, [esp + 0x7c]
lea edx, [ebp + 8]
push ecx
push edx
call fcn.100398e0
add esp, 8
test eax, eax
jne 0x10040194
mov ebp, dword [ebp]
test ebp, ebp
jne 0x100400e0
lea edx, [esi + 0x1c]
push 1
push edx
lea ecx, [esp + 0x1c]
call fcn.1009cf30
lea eax, [esp + 0x7c]
mov byte [esp + 0x74], 2
push eax
call fcn.10039900
xor edx, edx
div dword [esi + 0x40]
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x10040151
mov ebp, dword [esi + edx*4]
test ebp, ebp
je 0x10040151
lea ecx, [esp + 0x7c]
lea edx, [ebp + 8]
push ecx
push edx
call fcn.100398e0
add esp, 8
test eax, eax
jne 0x100401e3
mov ebp, dword [ebp]
test ebp, ebp
jne 0x10040131
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 1
call fcn.1009cf90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 0
call fcn.10040c30
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.10039950
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 0x10040100
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.1008ee20
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 0x10040242
test ebp, ebp
je 0x10040151
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.1008ee20
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.1009cf90
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
je 0x100402f2
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.1009cf30
mov eax, dword [esp + 0x58]
mov byte [esp + 0x74], 3
test eax, eax
je 0x100402e4
push 0x10
call fcn.1024ac71
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x74], 4
je 0x100402ab
mov edi, dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x234
push str.G:WorkshopAgentDevelopProjCodePreReleaseTMailGateway4.85.405.0_
push eax
mov ecx, edi
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call fcn.1009d390
mov dword [esi + 0xc], eax
jmp 0x100402ad
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.100ba880
mov esi, eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x100402e4
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 1
call fcn.1009cf90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 0
call fcn.10040c30
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.10039950
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6c
ret 0x10