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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x430b50
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x43b0c0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x43b0c0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp dword [0x43bf70], ebx
je 0x4046e4
mov edi, 0x43bf70
mov dword [esp + 0x10], edi
mov esi, dword [edi]
sub esp, 0x18
mov edx, esp
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [esi], ax
jne 0x404469
xor ecx, ecx
jmp 0x404483
mov ecx, esi
lea edi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404470
sub ecx, edi
mov edi, dword [esp + 0x28]
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403a70
lea ecx, [esp + 0x68]
call fcn.00404710
add esp, 0x18
mov dword [esp + 0x78], 0
cmp dword [esp + 0x60], 0
je 0x4046a7
push 8
push 0
push str._service
lea ecx, [esp + 0x5c]
call fcn.00402df0
mov esi, eax
xor eax, eax
push eax
push 0x4363a4
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.00403a70
mov byte [esp + 0x78], 1
cmp esi, 0xffffffff
je 0x404599
push esi
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
call fcn.00402700
mov esi, eax
lea eax, [esp + 0x38]
cmp eax, esi
je 0x404584
cmp dword [esp + 0x4c], 8
jb 0x404521
push dword [esp + 0x38]
call fcn.00424a34
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
cmp dword [esi + 0x14], 8
jae 0x404557
mov eax, dword [esi + 0x10]
inc eax
je 0x404563
add eax, eax
push eax
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.00424a40
add esp, 0xc
jmp 0x404563
mov eax, dword [esi]
mov dword [esp + 0x38], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [esp + 0x34], 8
jb 0x4045ab
push dword [esp + 0x20]
call fcn.00424a34
add esp, 4
jmp 0x4045ab
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x44]
call fcn.00403ef0
cmp dword [esp + 0x48], 0
je 0x404693
xor ebx, ebx
jmp 0x4045c0
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jb 0x4045d7
mov ecx, eax
test eax, eax
je 0x404684
jmp 0x4045db
lea ecx, [esp + 0x38]
cmp word [ecx], 0
je 0x404684
push ecx
call dword [0x431084]
cmp eax, 0xffffffff
je 0x404680
mov edi, dword [edi]
mov ecx, edi
call fcn.00404b20
push 0x7d0
call dword [0x431054]
push 0xf003f
push 0
push 0
call dword [0x431018]
mov esi, eax
test esi, esi
je 0x40464d
push 0x10000
push edi
push esi
call dword [0x431014]
mov edi, eax
test edi, edi
jne 0x40463a
push esi
call dword [0x431010]
jmp 0x40464d
push edi
call dword [0x431008]
push edi
mov edi, dword [0x431010]
call edi
push esi
call edi
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
call dword [0x431044]
test eax, eax
jne 0x404675
inc ebx
cmp ebx, 0xa
jge 0x40468f
mov edi, dword [esp + 0x10]
jmp 0x4045c0
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x404693
mov eax, dword [esp + 0x38]
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x404697
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], 8
jb 0x4046a7
push eax
call fcn.00424a34
add esp, 4
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x64], 8
jb 0x4046c2
push dword [esp + 0x50]
call fcn.00424a34
add esp, 4
mov ecx, dword [esp + 0x18]
inc ecx
cmp dword [ecx*4 + 0x43bf70], 0
lea edi, [ecx*4 + 0x43bf70]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
jne 0x404446
mov eax, ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004249d6
mov esp, ebp
pop ebp
ret