Function at 0x509e90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a993
mov eax, dword fs:[0]
push eax
mov eax, 0x1100
call fcn.004149d0
mov eax, dword [0x517138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004db400
call fcn.004db400
lea ecx, [ebp - 0xe5c]
call fcn.004065c0
mov dword [ebp - 4], 0
call fcn.00441cb0
mov word [ebp - 0x1064], 0
push 0x206
push 0
lea eax, [ebp - 0x1062]
push eax
call fcn.00407ed0
add esp, 0xc
call fcn.004915a0
push 0x7d0
lea ecx, [ebp - 0xe5c]
call fcn.004063c0
movzx ecx, al
test ecx, ecx
je 0x509f46
call fcn.00454670
call fcn.00454670
push 0x1388
lea edx, [ebp - 0x1064]
push edx
push 0x104
lea ecx, [ebp - 0xe5c]
call fcn.00406e10
call fcn.004972a0
call fcn.004bb060
call fcn.00504ba0
lea ecx, [ebp - 0x1084]
call fcn.00404a50
mov byte [ebp - 4], 1
call fcn.004d16f0
lea eax, [ebp - 0x1084]
push eax
call fcn.00506a60
add esp, 4
call fcn.0044a6c0
call fcn.004757d0
call fcn.004757d0
mov dword [ebp - 0x1068], 0
call fcn.004c8e50
lea ecx, [ebp - 0x10a0]
call fcn.00404a50
mov byte [ebp - 4], 2
call fcn.004e3b60
call fcn.00492d40
call fcn.00492d40
call fcn.004c2ff0
call fcn.00504ba0
mov dword [ebp - 0x1068], 0x6b
call fcn.00483db0
push str.BDMNetGetInfo.dll
lea ecx, [ebp - 0x10a0]
call fcn.00404b40
call fcn.004ec600
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10a4], esp
lea edx, [ebp - 0x1084]
push edx
call fcn.00404ac0
mov dword [ebp - 0x10cc], eax
mov eax, dword [ebp - 0x10cc]
mov dword [ebp - 0x10d0], eax
mov byte [ebp - 4], 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10a8], esp
lea edx, [ebp - 0x10a0]
push edx
call fcn.00404ac0
mov dword [ebp - 0x10d4], eax
mov eax, dword [ebp - 0x1068]
push eax
mov byte [ebp - 4], 2
call fcn.005067e0
add esp, 0x3c
mov dword [ebp - 0x10d8], eax
cmp dword [ebp - 0x10d8], 0
jne 0x50a055
push 0
call fcn.004092eb
call fcn.004a6990
mov dword [ebp - 0x1068], 0x6a
call fcn.004f56e0
push 0x50d4fc
lea ecx, [ebp - 0x10a0]
call fcn.00404b40
call fcn.00498c70
call fcn.004b3250
call fcn.004b3250
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10ac], esp
lea edx, [ebp - 0x1084]
push edx
call fcn.00404ac0
mov dword [ebp - 0x10dc], eax
mov eax, dword [ebp - 0x10dc]
mov dword [ebp - 0x10e0], eax
mov byte [ebp - 4], 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10b0], esp
lea edx, [ebp - 0x10a0]
push edx
call fcn.00404ac0
mov dword [ebp - 0x10e4], eax
mov eax, dword [ebp - 0x1068]
push eax
mov byte [ebp - 4], 2
call fcn.005067e0
add esp, 0x3c
mov dword [ebp - 0x10e8], eax
cmp dword [ebp - 0x10e8], 0
jne 0x50a0f9
call fcn.004a92d0
call fcn.004a92d0
mov dword [ebp - 0x1068], 0x68
call fcn.004b28c0
push 0x50d50c
lea ecx, [ebp - 0x10a0]
call fcn.00404b40
call fcn.00468930
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10b4], esp
lea edx, [ebp - 0x1084]
push edx
call fcn.00404ac0
mov dword [ebp - 0x10ec], eax
mov eax, dword [ebp - 0x10ec]
mov dword [ebp - 0x10f0], eax
mov byte [ebp - 4], 5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10b8], esp
lea edx, [ebp - 0x10a0]
push edx
call fcn.00404ac0
mov dword [ebp - 0x10f4], eax
mov eax, dword [ebp - 0x1068]
push eax
mov byte [ebp - 4], 2
call fcn.005067e0
add esp, 0x3c
mov dword [ebp - 0x10f8], eax
cmp dword [ebp - 0x10f8], 0
jne 0x50a1a9
call fcn.0049c850
call fcn.0049c850
call fcn.00477b20
call fcn.00477b20
push 0
call fcn.004092eb
call fcn.004cbcd0
mov dword [ebp - 0x1068], 0x69
call fcn.0045ffb0
push str.dl.dll
lea ecx, [ebp - 0x10a0]
call fcn.00404b40
call fcn.00447140
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10bc], esp
lea edx, [ebp - 0x1084]
push edx
call fcn.00404ac0
mov dword [ebp - 0x10fc], eax
mov eax, dword [ebp - 0x10fc]
mov dword [ebp - 0x1100], eax
mov byte [ebp - 4], 6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10c0], esp
lea edx, [ebp - 0x10a0]
push edx
call fcn.00404ac0
mov dword [ebp - 0x1104], eax
mov eax, dword [ebp - 0x1068]
push eax
mov byte [ebp - 4], 2
call fcn.005067e0
add esp, 0x3c
mov dword [ebp - 0x1108], eax
cmp dword [ebp - 0x1108], 0
jne 0x50a245
push 0
call fcn.004092eb
call fcn.00478cd0
call fcn.00468930
call fcn.00468930
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10c4], esp
lea edx, [ebp - 0x1084]
push edx
call fcn.00404ac0
mov dword [ebp - 0x110c], eax
call fcn.00509c90
add esp, 0x1c
call fcn.0049f460
call fcn.00441cb0
call fcn.00504ba0
call fcn.004cb710
call fcn.004cb710
mov dword [ebp - 0x10c8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10a0]
call fcn.00404b00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1084]
call fcn.00404b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe5c]
call fcn.004065f0
mov eax, dword [ebp - 0x10c8]
jmp 0x50a2d4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004079a5
mov esp, ebp
pop ebp
ret