Function at 0x407290
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x14]
push ebx
sub esp, 0x44
mov eax, dword [0x44302c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x1c
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xab
xor eax, eax
cmp ebx, 0x80004003
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectPlay8Client_EnumServiceProviders_failed_with__lx_n
call fcn.004056f0
mov eax, dword [0x44302c]
mov edx, dword [eax]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x1c
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xae
xor eax, eax
cmp ebx, 0x80004003
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectPlay8Client_EnumServiceProviders_failed_with__lx_n
call fcn.004056f0
mov eax, dword [0x44302c]
lea ecx, [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x1c
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xb1
xor eax, eax
cmp ebx, 0x80158100
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectPlay8Client_EnumServiceProviders_failed_with__lx_n
call fcn.004056f0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xb2
xor eax, eax
mov dword [esp + 4], 0x414c9d
mov edi, dword [ebp - 0x10]
test edi, edi
setne al
mov dword [esp], eax
call fcn.004056f0
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
call eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov edi, eax
mov eax, dword [0x44302c]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x1c
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xb7
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectPlay8Client_EnumServiceProviders_failed_with__lx_n
call fcn.004056f0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xb8
xor eax, eax
mov dword [esp + 4], 0x414cb8
mov edx, dword [ebp - 0x14]
test edx, edx
setne al
mov dword [esp], eax
call fcn.004056f0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xba
mov eax, dword [ebp - 0x14]
mov dword [esp], 0x414ce1
mov dword [esp + 4], eax
call fcn.00404fe0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x407600
add edi, 4
xor ebx, ebx
jmp 0x40759d
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x414d28
mov dword [esp + 4], eax
call fcn.00404b20
mov dword [esp + 4], eax
add ebx, 1
add edi, 0x20
mov dword [esp], 0x414d5b
call fcn.00404fe0
cmp ebx, dword [ebp - 0x14]
jae 0x407600
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xbe
mov eax, dword [edi + 0x10]
call fcn.00404b60
mov dword [esp], 0x414cfd
mov dword [esp + 4], eax
call fcn.00404fe0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xbf
mov eax, edi
shr eax, 0x10
jne 0x407520
mov dword [esp + 4], edi
mov dword [esp], 0x414d19
call fcn.00404b20
jmp 0x407582
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xc2
mov eax, dword [ebp - 0x18]
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x20], eax
call eax
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 4], 0x414d6c
call fcn.004056f0
mov eax, dword [0x44302c]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x416960
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x1c
mov edi, eax
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xc8
xor eax, eax
cmp edi, 0x80158100
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.IDirectPlay8Client_EnumServiceProviders_failed_with__lx_n
call fcn.004056f0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xc9
xor eax, eax
mov dword [esp + 4], 0x414c9d
mov edx, dword [ebp - 0x10]
test edx, edx
setne al
mov dword [esp], eax
call fcn.004056f0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov edi, eax
mov eax, dword [0x44302c]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x416960
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x1c
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xce
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.IDirectPlay8Client_EnumServiceProviders_failed_with__lx_n
call fcn.004056f0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xcf
xor eax, eax
mov dword [esp + 4], 0x414d94
mov ecx, dword [ebp - 0x14]
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.004056f0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4078a0
add edi, 4
xor ebx, ebx
jmp 0x40783d
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], 0x414d28
mov dword [esp + 4], eax
call fcn.00404b20
mov dword [esp + 4], eax
add ebx, 1
add edi, 0x20
mov dword [esp], 0x414dc6
call fcn.00404fe0
cmp ebx, dword [ebp - 0x14]
jae 0x4078a0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xd4
mov eax, dword [edi + 0x10]
call fcn.00404b60
mov dword [esp], 0x414db3
mov dword [esp + 4], eax
call fcn.00404fe0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xd5
mov eax, edi
shr eax, 0x10
jne 0x4077c0
mov dword [esp + 4], edi
mov dword [esp], 0x414d19
call fcn.00404b20
jmp 0x407822
mov eax, dword [0x44302c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0x58
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov esi, dword [ebp - 0x18]
mov dword [esp + 8], 0
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x415144
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x1c
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xdb
xor eax, eax
cmp ebx, 0x80158180
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x414de0
call fcn.004056f0
call fcn.0040f8c0
mov dword [eax], 0x414821
mov dword [eax + 4], 0xdc
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 0x414e17
cmp eax, 0x58
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004056f0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret