Function at 0x4107d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x454288]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x11c], edx
push esi
push edi
mov ecx, edx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x118], eax
call fcn.004258a0
movzx edx, bl
lea ecx, [ebp - 0xf0]
call fcn.004015b0
xor ecx, ecx
cmp byte [ebp + ecx - 0xf0], 0
je 0x410851
cmp byte [ebp + ecx - 0xef], 0
je 0x410850
cmp byte [ebp + ecx - 0xee], 0
je 0x41084b
cmp byte [ebp + ecx - 0xed], 0
je 0x410846
add ecx, 4
cmp ecx, 0x10
jb 0x410814
jmp 0x410851
add ecx, 3
jmp 0x410851
add ecx, 2
jmp 0x410851
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x410863
mov word [ebp + ecx - 0xf0], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x84]
shr edx, 8
and edx, 0xff
call fcn.004015b0
xor edx, edx
jmp 0x410880
cmp byte [ebp + edx - 0xf0], 0
je 0x4108bd
cmp byte [ebp + edx - 0xef], 0
je 0x4108bc
cmp byte [ebp + edx - 0xee], 0
je 0x4108b7
cmp byte [ebp + edx - 0xed], 0
je 0x4108b2
add edx, 4
cmp edx, 0x10
jb 0x410880
jmp 0x4108bd
add edx, 3
jmp 0x4108bd
add edx, 2
jmp 0x4108bd
inc edx
xor esi, esi
cmp byte [ebp - 0x84], 0
je 0x4108fd
mov edi, edx
lea eax, [ebp - 0x84]
sub edi, eax
lea eax, [edi + esi]
lea eax, [ebp + eax - 0x84]
cmp eax, 0xf
jae 0x4108fd
mov al, byte [ebp + esi - 0x84]
lea ecx, [edx + esi]
inc esi
mov byte [ebp + ecx - 0xf0], al
cmp byte [ebp + esi - 0x84], 0
jne 0x4108d2
lea eax, [edx + esi]
cmp eax, 0xf
jbe 0x41090e
mov byte [ebp - 0xe1], 0
jmp 0x410916
mov byte [ebp + eax - 0xf0], 0
xor ecx, ecx
jmp 0x410920
cmp byte [ebp + ecx - 0xf0], 0
je 0x41095d
cmp byte [ebp + ecx - 0xef], 0
je 0x41095c
cmp byte [ebp + ecx - 0xee], 0
je 0x410957
cmp byte [ebp + ecx - 0xed], 0
je 0x410952
add ecx, 4
cmp ecx, 0x10
jb 0x410920
jmp 0x41095d
add ecx, 3
jmp 0x41095d
add ecx, 2
jmp 0x41095d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x41096f
mov word [ebp + ecx - 0xf0], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x24]
shr edx, 0x10
and edx, 0xff
call fcn.004015b0
xor edx, edx
cmp byte [ebp + edx - 0xf0], 0
je 0x4109c1
cmp byte [ebp + edx - 0xef], 0
je 0x4109c0
cmp byte [ebp + edx - 0xee], 0
je 0x4109bb
cmp byte [ebp + edx - 0xed], 0
je 0x4109b6
add edx, 4
cmp edx, 0x10
jb 0x410984
jmp 0x4109c1
add edx, 3
jmp 0x4109c1
add edx, 2
jmp 0x4109c1
inc edx
xor esi, esi
cmp byte [ebp - 0x24], 0
je 0x4109f2
mov edi, edx
lea eax, [ebp - 0x24]
sub edi, eax
lea eax, [edi + esi]
lea eax, [ebp + eax - 0x24]
cmp eax, 0xf
jae 0x4109f2
mov al, byte [ebp + esi - 0x24]
lea ecx, [edx + esi]
inc esi
mov byte [ebp + ecx - 0xf0], al
cmp byte [ebp + esi - 0x24], 0
jne 0x4109d0
lea eax, [edx + esi]
cmp eax, 0xf
jbe 0x410a03
mov byte [ebp - 0xe1], 0
jmp 0x410a0b
mov byte [ebp + eax - 0xf0], 0
xor ecx, ecx
lea ecx, [ecx]
cmp byte [ebp + ecx - 0xf0], 0
je 0x410a4d
cmp byte [ebp + ecx - 0xef], 0
je 0x410a4c
cmp byte [ebp + ecx - 0xee], 0
je 0x410a47
cmp byte [ebp + ecx - 0xed], 0
je 0x410a42
add ecx, 4
cmp ecx, 0x10
jb 0x410a10
jmp 0x410a4d
add ecx, 3
jmp 0x410a4d
add ecx, 2
jmp 0x410a4d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x410a5f
mov word [ebp + ecx - 0xf0], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x64]
shr edx, 0x18
call fcn.004015b0
xor edx, edx
mov edi, edi
cmp byte [ebp + edx - 0xf0], 0
je 0x410aad
cmp byte [ebp + edx - 0xef], 0
je 0x410aac
cmp byte [ebp + edx - 0xee], 0
je 0x410aa7
cmp byte [ebp + edx - 0xed], 0
je 0x410aa2
add edx, 4
cmp edx, 0x10
jb 0x410a70
jmp 0x410aad
add edx, 3
jmp 0x410aad
add edx, 2
jmp 0x410aad
inc edx
xor esi, esi
cmp byte [ebp - 0x64], 0
je 0x410ae2
mov edi, edx
lea eax, [ebp - 0x64]
sub edi, eax
lea esp, [esp]
lea eax, [edi + esi]
lea eax, [ebp + eax - 0x64]
cmp eax, 0xf
jae 0x410ae2
mov al, byte [ebp + esi - 0x64]
lea ecx, [edx + esi]
inc esi
mov byte [ebp + ecx - 0xf0], al
cmp byte [ebp + esi - 0x64], 0
jne 0x410ac0
lea eax, [edx + esi]
cmp eax, 0xf
jbe 0x410af3
mov byte [ebp - 0xe1], 0
jmp 0x410afb
mov byte [ebp + eax - 0xf0], 0
mov esi, dword [ebp + 8]
mov al, byte [esi]
mov cl, byte [esi + 5]
mov dh, al
mov dl, byte [esi + 4]
mov ah, byte [esi + 3]
mov ch, byte [esi + 2]
mov bl, byte [esi + 1]
shr dh, 4
cmp dh, 9
ja 0x410b24
add dh, 0x30
mov byte [ebp - 0x110], dh
jmp 0x410b3b
cmp dh, 0xf
ja 0x410b34
add dh, 0x37
mov byte [ebp - 0x110], dh
jmp 0x410b3b
mov byte [ebp - 0x110], 0x3f
and al, 0xf
cmp al, 9
ja 0x410b4b
add al, 0x30
mov byte [ebp - 0x10f], al
jmp 0x410b60
cmp al, 0xf
ja 0x410b59
add al, 0x37
mov byte [ebp - 0x10f], al
jmp 0x410b60
mov byte [ebp - 0x10f], 0x3f
mov al, bl
shr al, 4
cmp al, 9
ja 0x410b73
add al, 0x30
mov byte [ebp - 0x10d], al
jmp 0x410b88
cmp al, 0xf
ja 0x410b81
add al, 0x37
mov byte [ebp - 0x10d], al
jmp 0x410b88
mov byte [ebp - 0x10d], 0x3f
and bl, 0xf
cmp bl, 9
ja 0x410b9b
add bl, 0x30
mov byte [ebp - 0x10c], bl
jmp 0x410bb2
cmp bl, 0xf
ja 0x410bab
add bl, 0x37
mov byte [ebp - 0x10c], bl
jmp 0x410bb2
mov byte [ebp - 0x10c], 0x3f
mov al, ch
shr al, 4
cmp al, 9
ja 0x410bc5
add al, 0x30
mov byte [ebp - 0x10a], al
jmp 0x410bda
cmp al, 0xf
ja 0x410bd3
add al, 0x37
mov byte [ebp - 0x10a], al
jmp 0x410bda
mov byte [ebp - 0x10a], 0x3f
and ch, 0xf
cmp ch, 9
ja 0x410bed
add ch, 0x30
mov byte [ebp - 0x109], ch
jmp 0x410c04
cmp ch, 0xf
ja 0x410bfd
add ch, 0x37
mov byte [ebp - 0x109], ch
jmp 0x410c04
mov byte [ebp - 0x109], 0x3f
mov al, ah
shr al, 4
cmp al, 9
ja 0x410c17
add al, 0x30
mov byte [ebp - 0x107], al
jmp 0x410c2c
cmp al, 0xf
ja 0x410c25
add al, 0x37
mov byte [ebp - 0x107], al
jmp 0x410c2c
mov byte [ebp - 0x107], 0x3f
and ah, 0xf
cmp ah, 9
ja 0x410c3f
add ah, 0x30
mov byte [ebp - 0x106], ah
jmp 0x410c56
cmp ah, 0xf
ja 0x410c4f
add ah, 0x37
mov byte [ebp - 0x106], ah
jmp 0x410c56
mov byte [ebp - 0x106], 0x3f
mov al, dl
shr al, 4
cmp al, 9
ja 0x410c69
add al, 0x30
mov byte [ebp - 0x104], al
jmp 0x410c7e
cmp al, 0xf
ja 0x410c77
add al, 0x37
mov byte [ebp - 0x104], al
jmp 0x410c7e
mov byte [ebp - 0x104], 0x3f
and dl, 0xf
cmp dl, 9
ja 0x410c91
add dl, 0x30
mov byte [ebp - 0x103], dl
jmp 0x410ca8
cmp dl, 0xf
ja 0x410ca1
add dl, 0x37
mov byte [ebp - 0x103], dl
jmp 0x410ca8
mov byte [ebp - 0x103], 0x3f
mov al, cl
shr al, 4
cmp al, 9
ja 0x410cbb
add al, 0x30
mov byte [ebp - 0x101], al
jmp 0x410cd0
cmp al, 0xf
ja 0x410cc9
add al, 0x37
mov byte [ebp - 0x101], al
jmp 0x410cd0
mov byte [ebp - 0x101], 0x3f
and cl, 0xf
cmp cl, 9
ja 0x410ce3
add cl, 0x30
mov byte [ebp - 0x100], cl
jmp 0x410cfa
cmp cl, 0xf
ja 0x410cf3
add cl, 0x37
mov byte [ebp - 0x100], cl
jmp 0x410cfa
mov byte [ebp - 0x100], 0x3f
mov ebx, dword [ebp - 0x11c]
lea ecx, [ebp - 0xe0]
movzx edx, bl
mov byte [ebp - 0xff], 0
mov byte [ebp - 0x10e], 0x3a
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x108], 0x3a
mov byte [ebp - 0x105], 0x3a
mov byte [ebp - 0x102], 0x3a
call fcn.004015b0
xor ecx, ecx
lea ebx, [ebx]
cmp byte [ebp + ecx - 0xe0], 0
je 0x410d7d
cmp byte [ebp + ecx - 0xdf], 0
je 0x410d7c
cmp byte [ebp + ecx - 0xde], 0
je 0x410d77
cmp byte [ebp + ecx - 0xdd], 0
je 0x410d72
add ecx, 4
cmp ecx, 0x10
jb 0x410d40
jmp 0x410d7d
add ecx, 3
jmp 0x410d7d
add ecx, 2
jmp 0x410d7d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x410d8f
mov word [ebp + ecx - 0xe0], 0x2e
mov edx, ebx
lea ecx, [ebp - 0xa4]
shr edx, 8
and edx, 0xff
call fcn.004015b0
xor edx, edx
jmp 0x410db0
cmp byte [ebp + edx - 0xe0], 0
je 0x410ded
cmp byte [ebp + edx - 0xdf], 0
je 0x410dec
cmp byte [ebp + edx - 0xde], 0
je 0x410de7
cmp byte [ebp + edx - 0xdd], 0
je 0x410de2
add edx, 4
cmp edx, 0x10
jb 0x410db0
jmp 0x410ded
add edx, 3
jmp 0x410ded
add edx, 2
jmp 0x410ded
inc edx
xor esi, esi
cmp byte [ebp - 0xa4], 0
je 0x410e2d
mov edi, edx
lea eax, [ebp - 0xa4]
sub edi, eax
lea eax, [edi + esi]
lea eax, [ebp + eax - 0xa4]
cmp eax, 0xf
jae 0x410e2d
mov al, byte [ebp + esi - 0xa4]
lea ecx, [edx + esi]
inc esi
mov byte [ebp + ecx - 0xe0], al
cmp byte [ebp + esi - 0xa4], 0
jne 0x410e02
lea eax, [edx + esi]
cmp eax, 0xf
jbe 0x410e3e
mov byte [ebp - 0xd1], 0
jmp 0x410e46
mov byte [ebp + eax - 0xe0], 0
xor ecx, ecx
jmp 0x410e50
cmp byte [ebp + ecx - 0xe0], 0
je 0x410e8d
cmp byte [ebp + ecx - 0xdf], 0
je 0x410e8c
cmp byte [ebp + ecx - 0xde], 0
je 0x410e87
cmp byte [ebp + ecx - 0xdd], 0
je 0x410e82
add ecx, 4
cmp ecx, 0x10
jb 0x410e50
jmp 0x410e8d
add ecx, 3
jmp 0x410e8d
add ecx, 2
jmp 0x410e8d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x410e9f
mov word [ebp + ecx - 0xe0], 0x2e
mov edx, ebx
lea ecx, [ebp - 0xc4]
shr edx, 0x10
and edx, 0xff
call fcn.004015b0
xor edx, edx
jmp 0x410ec0
cmp byte [ebp + edx - 0xe0], 0
je 0x410efd
cmp byte [ebp + edx - 0xdf], 0
je 0x410efc
cmp byte [ebp + edx - 0xde], 0
je 0x410ef7
cmp byte [ebp + edx - 0xdd], 0
je 0x410ef2
add edx, 4
cmp edx, 0x10
jb 0x410ec0
jmp 0x410efd
add edx, 3
jmp 0x410efd
add edx, 2
jmp 0x410efd
inc edx
xor esi, esi
cmp byte [ebp - 0xc4], 0
je 0x410f3d
mov edi, edx
lea eax, [ebp - 0xc4]
sub edi, eax
lea eax, [edi + esi]
lea eax, [ebp + eax - 0xc4]
cmp eax, 0xf
jae 0x410f3d
mov al, byte [ebp + esi - 0xc4]
lea ecx, [edx + esi]
inc esi
mov byte [ebp + ecx - 0xe0], al
cmp byte [ebp + esi - 0xc4], 0
jne 0x410f12
lea eax, [edx + esi]
cmp eax, 0xf
jbe 0x410f4e
mov byte [ebp - 0xd1], 0
jmp 0x410f56
mov byte [ebp + eax - 0xe0], 0
xor ecx, ecx
jmp 0x410f60
cmp byte [ebp + ecx - 0xe0], 0
je 0x410f9d
cmp byte [ebp + ecx - 0xdf], 0
je 0x410f9c
cmp byte [ebp + ecx - 0xde], 0
je 0x410f97
cmp byte [ebp + ecx - 0xdd], 0
je 0x410f92
add ecx, 4
cmp ecx, 0x10
jb 0x410f60
jmp 0x410f9d
add ecx, 3
jmp 0x410f9d
add ecx, 2
jmp 0x410f9d
inc ecx
lea eax, [ecx + 2]
cmp eax, 0x10
ja 0x410faf
mov word [ebp + ecx - 0xe0], 0x2e
mov edx, ebx
lea ecx, [ebp - 0x44]
shr edx, 0x18
call fcn.004015b0
xor edx, edx
mov edi, edi
cmp byte [ebp + edx - 0xe0], 0
je 0x410ffd
cmp byte [ebp + edx - 0xdf], 0
je 0x410ffc
cmp byte [ebp + edx - 0xde], 0
je 0x410ff7
cmp byte [ebp + edx - 0xdd], 0
je 0x410ff2
add edx, 4
cmp edx, 0x10
jb 0x410fc0
jmp 0x410ffd
add edx, 3
jmp 0x410ffd
add edx, 2
jmp 0x410ffd
inc edx
xor esi, esi
cmp byte [ebp - 0x44], 0
je 0x411032
mov edi, edx
lea eax, [ebp - 0x44]
sub edi, eax
lea esp, [esp]
lea eax, [edi + esi]
lea eax, [ebp + eax - 0x44]
cmp eax, 0xf
jae 0x411032
mov al, byte [ebp + esi - 0x44]
lea ecx, [edx + esi]
inc esi
mov byte [ebp + ecx - 0xe0], al
cmp byte [ebp + esi - 0x44], 0
jne 0x411010
lea eax, [edx + esi]
cmp eax, 0xf
jbe 0x411043
mov byte [ebp - 0xd1], 0
jmp 0x41104b
mov byte [ebp + eax - 0xe0], 0
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xe0]
push eax
push str.Sending_ARP_request_for_IP__s__MAC__s__server_IP__s_
call fcn.0040ae40
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x10
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0xd0], eax
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0xcc], eax
call esi
cmp dword [ebp - 0xd0], 0
mov dword [ebp - 0xc8], eax
je 0x41121a
cmp dword [ebp - 0xcc], 0
je 0x41121a
test eax, eax
je 0x41121a
push 0x1c
call fcn.004274a4
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4110e0
xor eax, eax
mov dword [ecx + 8], eax
mov word [ecx + 0xc], ax
jmp 0x4110e2
xor ecx, ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x120]
mov dword [ecx + 4], eax
mov dword [ecx], ebx
mov eax, dword [edx]
mov dword [ecx + 8], eax
mov ax, word [edx + 4]
mov word [ecx + 0xc], ax
mov eax, dword [ebp - 0xd0]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0xcc]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0xc8]
mov dword [ecx + 0x18], eax
lea eax, [ebp - 0x114]
push eax
push 0
push ecx
push 0x410080
push 0
push 0
call fcn.0042a0fa
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x411145
push str._beginthread____failed.
push 0x7f
jmp 0x411221
push 0x12c
push 0
lea eax, [ebp - 0xd0]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov bl, 1
push dword [ebp - 0x114]
cmp eax, 0x102
jne 0x411171
push str.Sending_ARP_ended_by_WAIT_TIMEOUT._IP_is_free._Thread_id__d.
jmp 0x41117a
test eax, eax
jne 0x41118f
push str.Sending_ARP_returned_IPFree._Thread_id__d.
call fcn.0040ae40
mov eax, dword [ebp - 0x118]
add esp, 8
xor bl, bl
mov byte [eax], 1
jmp 0x4111e6
cmp eax, 1
jne 0x4111a5
push str.Sending_ARP_returned_IP_Mine._Thread_id__d.
call fcn.0040ae40
add esp, 8
xor bl, bl
jmp 0x4111e6
cmp eax, 2
jne 0x4111b9
push str.Sending_ARP_returned_IP_Occupied._Thread_id__d.
call fcn.0040ae40
add esp, 8
jmp 0x4111e6
push str.Unknown_error._Thread_id__d.
call fcn.0040adf0
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0xa2
push str.DHCPserver.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x1c
push dword [ebp - 0xd0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xcc]
call esi
push dword [ebp - 0xc8]
call esi
push edi
call esi
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426c47
mov esp, ebp
pop ebp
ret
push str.CreateEvent_failed.
push 0x6f
push str.DHCPserver.cpp
push str.ERROR
call fcn.0040ae90
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00426c47
mov esp, ebp
pop ebp
ret