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

Disassembly:
push 0xffffffffffffffff
push 0x5d25e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
mov ebp, ecx
push edi
cmp esi, 2
mov dword [esp + 0x20], ebp
mov dword [ebp + 0xa4], esi
push 0
jne 0x42df7c
push 0x1000
push 0
jmp 0x42df83
push 0
push 0x1000
mov ecx, ebp
call fcn.005b3cfc
mov eax, dword [ebp + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x455
push eax
call edi
cmp esi, 2
jne 0x42dff1
mov ecx, dword [ebp + 0x1c]
or al, 8
push eax
push 0
push 0x454
push ecx
call edi
mov ecx, dword [ebp + 0x1c]
push 0
push 1
push 0x43c
push ecx
call edi
mov eax, dword [0x87a768]
mov dword [esp + 0x14], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xd4]
mov byte [esp + 0x74], 1
neg eax
sbb eax, eax
test eax, eax
je 0x42e31c
jmp 0x42e016
mov edx, dword [ebp + 0x1c]
and al, 0xf7
push eax
push 0
push 0x454
push edx
call edi
test esi, esi
jne 0x42dfb4
mov eax, dword [ebp + 0x1c]
push esi
push esi
push 0x43c
push eax
jmp 0x42dfc1
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
mov edx, eax
jne 0x42e03d
mov esi, dword [ebp + 0xd0]
xor eax, eax
test esi, esi
jbe 0x42e03d
mov ecx, dword [ebp + 0xcc]
mov edx, dword [ecx]
test edx, edx
jne 0x42e03d
inc eax
add ecx, 4
cmp eax, esi
jb 0x42e02f
mov ebx, dword [edx]
test ebx, ebx
mov dword [esp + 0x18], ebx
jne 0x42e074
mov eax, dword [edx + 4]
mov edi, dword [ebp + 0xd0]
inc eax
cmp eax, edi
jae 0x42e074
mov ecx, dword [ebp + 0xcc]
lea ecx, [ecx + eax*4]
mov esi, dword [ecx]
test esi, esi
mov dword [esp + 0x18], esi
jne 0x42e070
inc eax
add ecx, 4
cmp eax, edi
jb 0x42e05e
mov ebx, dword [esp + 0x18]
lea esi, [edx + 0xc]
mov ecx, 6
lea edi, [esp + 0x3c]
mov dword [esp + 0x24], ebx
rep movsd dword es:[edi], dword [esi]
test byte [esp + 0x45], 1
jne 0x42e30e
lea ecx, [esp + 0x14]
call fcn.005b46e9
lea ecx, [esp + 0x10]
call fcn.005b46e9
mov ebx, dword [esp + 0x7c]
cmp ebx, 2
jne 0x42e0f6
call fcn.00596b38
mov esi, eax
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x30]
mov ecx, esi
push edx
push eax
call fcn.004c6180
test eax, eax
je 0x42e0e1
add esi, 0x1c
add eax, 0xc
push eax
mov ecx, esi
call fcn.005b48a8
push 1
mov ecx, esi
call fcn.005b4ba6
jmp 0x42e0e3
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.005b4b52
mov edi, dword [esp + 0x40]
jmp 0x42e208
call fcn.00596b38
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x34]
mov esi, eax
push ecx
push edi
mov ecx, esi
call fcn.004c6180
test eax, eax
je 0x42e12b
add esi, 0x1c
add eax, 0xc
push eax
mov ecx, esi
call fcn.005b48a8
push 1
mov ecx, esi
call fcn.005b4ba6
jmp 0x42e12d
xor eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.005b48f8
push 0x637c20
lea ecx, [esp + 0x14]
call fcn.005ace06
cmp eax, 0xffffffff
je 0x42e176
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.005acd6c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 2
call fcn.005b48a8
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 1
call fcn.005b4761
push 0x637c18
lea ecx, [esp + 0x14]
call fcn.005ace06
cmp eax, 0xffffffff
je 0x42e1b5
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.005acd6c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 3
call fcn.005b48a8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 1
call fcn.005b4761
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.005b4b8e
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
jne 0x42e1fd
push 0x656d6c
lea ecx, [esp + 0x20]
call fcn.005b482a
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x78], 4
call fcn.005b4b8e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 1
call fcn.005b4761
push 0
lea ecx, [esp + 0x18]
call fcn.005b4b79
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x42e233
push eax
lea ecx, [esp + 0x18]
call fcn.005b4ba6
mov edx, dword [ebp + 0x1c]
push eax
push 0
push 0x44d
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x4c], eax
mov eax, ebx
dec eax
je 0x42e25c
dec eax
je 0x42e245
mov al, byte [esp + 0x45]
and al, 0xbf
or al, 0x10
jmp 0x42e262
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
mov al, byte [esp + 0x45]
test ecx, ecx
jne 0x42e258
or al, 0x10
jmp 0x42e262
or al, 0x50
jmp 0x42e262
mov al, byte [esp + 0x45]
and al, 0xaf
mov ebx, dword [ebp + 0xd0]
mov byte [esp + 0x45], al
mov eax, edi
xor edx, edx
shr eax, 4
div ebx
mov ecx, dword [ebp + 0xcc]
test ecx, ecx
mov esi, edx
mov dword [esp + 0x38], esi
je 0x42e2a1
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x42e29d
cmp dword [eax + 8], edi
je 0x42e299
mov eax, dword [eax]
test eax, eax
jne 0x42e28c
jmp 0x42e29d
test eax, eax
jne 0x42e2fc
test ecx, ecx
jne 0x42e2db
lea ebp, [ebx*4]
push ebp
call fcn.005b449a
mov ecx, dword [esp + 0x24]
mov edi, eax
xor eax, eax
add esp, 4
lea edx, [ecx + 0xc8]
mov ecx, ebp
shr ecx, 2
mov dword [edx + 4], edi
rep stosd dword es:[edi], eax
mov ecx, ebp
mov ebp, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x40]
mov dword [edx + 8], ebx
lea ebx, [ebp + 0xc8]
mov ecx, ebx
call fcn.0042e4c0
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*4]
mov dword [eax], ecx
mov edx, dword [ebx + 4]
mov dword [edx + esi*4], eax
mov ebx, dword [esp + 0x18]
lea edi, [eax + 0xc]
mov ecx, 6
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
jne 0x42e012
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x1c]
push 0
push 0
push 0x418
push eax
call edi
test eax, eax
jle 0x42e3c3
mov ebx, eax
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0x417
push edx
call edi
mov eax, dword [ebp + 0x1c]
push 0
push 0
push 0x416
push eax
call edi
test byte [esp + 0x45], 1
je 0x42e371
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
push 1
push 0x414
push edx
call edi
jmp 0x42e3bc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x7c]
push eax
push ecx
lea ecx, [ebp + 0xc8]
call fcn.004c6180
test eax, eax
je 0x42e3bc
lea esi, [eax + 0xc]
mov ecx, 6
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x42e3b6
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x54]
push edx
push 1
push 0x414
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
dec ebx
jne 0x42e335
mov ecx, dword [ebp + 0x1c]
push 0
push 0
push 0x421
push ecx
call edi
mov edx, dword [ebp + 0x1c]
push 0
push 0
push 0x43a
push edx
call edi
shr eax, 0x10
xor esi, esi
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push esi
push esi
push 0x43a
push eax
call edi
mov ecx, dword [ebp + 0x1c]
push esi
push esi
and eax, 0xffff
push 0x418
push ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x30], esi
call edi
test eax, eax
mov dword [esp + 0x2c], eax
jle 0x42e466
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push esi
push 0x41d
push eax
call edi
test eax, eax
je 0x42e45d
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x40]
add ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x48]
sub ecx, edx
cmp ebx, ecx
jg 0x42e453
mov ebx, ecx
cmp dword [esp + 0x7c], eax
jg 0x42e45d
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x42e41a
mov ecx, dword [ebp + 0xac]
mov edx, dword [ebp + 0xa8]
mov eax, dword [esp + 0x7c]
push ecx
push edx
push ebx
push eax
mov ecx, ebp
call fcn.005cc1a6
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call fcn.005b4761
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], 0xffffffff
call fcn.005b4761
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 8