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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
xor edi, edi
push edi
push edi
mov esi, eax
push 0x421
push dword [esi + 8]
call ebx
push edi
push edi
push 0x418
push dword [esi + 8]
call ebx
cmp byte [esi + 0x3d], 0
mov dword [esp + 0x24], eax
jne 0x42bb61
cmp eax, edi
mov dword [esp + 0x20], SysReAllocString
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], edi
jbe 0x42baf2
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x90], 0x20
push 0x43f
push dword [esi + 8]
mov dword [esp + 0x9c], gethostbyname
call ebx
test byte [esp + 0x99], 1
jne 0x42bae0
cmp dword [esp + 0x90], 0x5e
je 0x42bae0
test byte [esp + 0x98], 8
jne 0x42bae0
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x10]
push 0x41d
push dword [esi + 8]
call ebx
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cmp dword [esp + 0x20], eax
jl 0x42bad6
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], eax
jg 0x42bae0
mov dword [esp + 0x18], eax
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x24]
jb 0x42ba67
mov al, byte [esi + 0x1c]
neg al
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
sbb eax, eax
and eax, 0xfffffff6
add eax, 0x1e
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
movzx edi, word [esp + 0x18]
movzx eax, ax
shl eax, 0x10
or eax, edi
push eax
push 0
push 0x41f
push dword [esi + 8]
call ebx
movzx eax, word [esp + 0x20]
shl edi, 0x10
or edi, eax
push edi
push 0
push 0x43b
push dword [esi + 8]
call ebx
mov byte [esi + 0x3d], 1
lea eax, [esp + 0x78]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
xor ecx, ecx
mov dword [esp + 0x30], eax
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043ef0a
xor edi, edi
cmp dword [esp + 0x28], edi
pop ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edi
jbe 0x42bc68
lea eax, [esp + 0x58]
push eax
push edi
push 0x43f
push dword [esi + 8]
mov dword [esp + 0x68], 0x20
mov dword [esp + 0x6c], 0x80000074
call ebx
mov eax, dword [esp + 0x60]
cmp eax, 0x2457
jne 0x42bbf4
mov dword [esp + 0x28], edi
cmp eax, 0x62
jne 0x42bbfd
mov dword [esp + 0x2c], edi
cmp eax, 2
jne 0x42bc12
mov eax, dword [esp + 0xc]
lea eax, [eax + edi*4]
and dword [eax], 0
mov dword [esp + 0x18], edi
jmp 0x42bc57
cmp eax, 0x5e
jne 0x42bc29
movzx eax, word [esp + 0x6a]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], edi
mov dword [ecx + edi*4], eax
jmp 0x42bc5d
test byte [esp + 0x68], 8
je 0x42bc36
mov ecx, dword [esp + 0x6c]
jmp 0x42bc4e
lea eax, [esp + 0x34]
push eax
push edi
push 0x41d
push dword [esi + 8]
call ebx
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
lea eax, [eax + edi*4]
mov dword [eax], ecx
mov eax, dword [eax]
add dword [esp + 0x14], eax
inc edi
cmp edi, dword [esp + 0x24]
jb 0x42bbc5
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.0041800d
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x30]
setg cl
neg al
sbb al, al
not al
and eax, ecx
cmp dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0x13], al
jae 0x42bd01
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push 0x5e
push 0x43f
push dword [esi + 8]
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x48], 0x14
call ebx
cmp byte [esp + 0x13], 0
je 0x42bccd
and byte [esp + 0x44], 0xf7
jmp 0x42bcd2
or byte [esp + 0x44], 8
lea eax, [esp + 0x34]
push eax
push 0x5e
push 0x440
push dword [esi + 8]
mov dword [esp + 0x48], 4
call ebx
cmp byte [esp + 0x13], 0
je 0x42bd01
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx*4]
sub dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043ef0a
pop ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov edx, eax
mov dword [esp + 0x54], edx
jbe 0x42bd2f
xor eax, eax
inc eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
jae 0x42bd3c
and dword [edx + eax*4], 0
mov eax, dword [esp + 0x2c]
cmp eax, 0xffffffff
jae 0x42bd49
and dword [edx + eax*4], 0
and dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x14], ecx
jbe 0x42be17
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], edx
sub dword [esp + 0x28], eax
lea ecx, [eax + ecx*4]
jmp 0x42bd73
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
dec dword [esp + 0x14]
sub ecx, 4
cmp dword [edx + ecx], eax
mov dword [esp + 0x2c], ecx
jne 0x42be08
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x3c], 0x20
push 0x43f
push dword [esi + 8]
mov dword [esp + 0x48], reloc.WS2_32.dll_gethostbyname
call ebx
cmp dword [esp + 0x3c], 0x5e
je 0x42be08
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x42be08
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x30]
jg 0x42bde0
and byte [esp + 0x44], 0xf7
and dword [esp + 0x48], 0
jmp 0x42bded
or byte [esp + 0x44], 8
sub dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x40], setsockopt
push 0x440
push dword [esi + 8]
call ebx
cmp dword [esp + 0x14], 0
ja 0x42bd6f
mov edx, dword [esp + 0x54]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 1
jle 0x42bd4e
cmp dword [esp + 0x18], 0xffffffff
je 0x42be87
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x34], 0x20
mov edi, eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x40], reloc.OLEAUT32.dll_SysReAllocStringLen
push 0x43f
push dword [esi + 8]
call ebx
test edi, edi
jle 0x42be6f
or dword [esp + 0x38], 0x40
and byte [esp + 0x44], 0xf7
mov word [esp + 0x46], di
jmp 0x42be74
or byte [esp + 0x44], 8
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
push 0x440
push dword [esi + 8]
call ebx
call fcn.0042c12e
push dword [esp + 0x54]
call fcn.0043f1ec
pop ecx
push dword [esp + 0xc]
call fcn.0043f1ec
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret