Function at 0x40c900
Capabilities:
Resolve dns
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x44a4e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ec
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0x420]
push 0x44e9e8
mov ecx, esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], 0x2774
call fcn.0040c2e0
push str.Diagnostic_report_begin._r_n
mov ecx, esi
call fcn.0040c2e0
push 0x44e9e8
mov ecx, esi
call fcn.0040c2e0
mov ecx, dword [0x4626f8]
push 0xff
lea eax, [esp + 0xf4]
push eax
push 0x2774
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x40cf3a
mov edi, edi
xor edi, edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0xf0]
push edx
mov dword [esp + 0x508], edi
call ebp
cmp eax, 0xffffffff
push 0x14
lea ecx, [esp + 0x24]
push str.Traceroute_of_host:
jne 0x40cc46
call fcn.00401ab0
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
cmp ebp, edi
jne 0x40cac4
push 0xd
push str.unknown_host
lea ecx, [esp + 0x28]
call fcn.00401ab0
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x3fc]
push edx
mov dword [esp + 0x3fc], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x100
jle 0x40ca30
push esi
call fcn.0043bf47
add esp, 4
cmp eax, edi
mov dword [esp + 0x3f8], eax
jne 0x40ca37
push 0x8007000e
call fcn.00401200
mov eax, dword [esp + 0x3f8]
mov ecx, esi
mov edi, eax
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x3f8]
mov eax, edx
mov byte [esp + 0x504], 1
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ca64
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov eax, dword [esp + 0x3f8]
lea ecx, [esp + 0x3fc]
cmp eax, ecx
mov byte [esp + 0x504], 0
je 0x40ca9b
push eax
call fcn.0043bf59
add esp, 4
push 2
push 0x44e9e8
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x20]
push edx
add ecx, 0x420
call fcn.0040bcc0
jmp 0x40cd15
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0xf0]
lea eax, [esp + 0x2f8]
push ecx
mov dword [esp + 0x2f8], eax
call ebx
mov esi, eax
inc esi
cmp esi, 0x100
jle 0x40cb07
push esi
call fcn.0043bf47
add esp, 4
cmp eax, edi
mov dword [esp + 0x2f4], eax
je 0x40ca26
jmp 0x40cb0e
mov eax, dword [esp + 0x2f4]
mov ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0xf0]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x2f4]
mov eax, edx
mov byte [esp + 0x504], 2
lea esi, [eax + 1]
jmp 0x40cb40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cb40
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov eax, dword [esp + 0x2f4]
lea ecx, [esp + 0x2f8]
cmp eax, ecx
mov byte [esp + 0x504], 0
je 0x40cb77
push eax
call fcn.0043bf59
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov esi, dword [eax]
push 5
push str.__IP
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], esi
call fcn.0040bab0
push esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
test esi, esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], ecx
jne 0x40cbaf
xor edx, edx
mov dword [esp + 0x4c], edx
jmp 0x40cbee
push esi
call ebx
mov ebp, eax
inc ebp
cmp ebp, 0x80
jle 0x40cbd4
push ebp
call fcn.0043bf47
add esp, 4
test eax, eax
mov dword [esp + 0x4c], eax
je 0x40ca26
jmp 0x40cbd8
mov eax, dword [esp + 0x4c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x4c]
mov eax, edx
mov byte [esp + 0x504], 3
lea esi, [eax + 1]
jmp 0x40cc00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cc00
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
mov byte [esp + 0x504], 0
je 0x40cc31
push eax
call fcn.0043bf59
add esp, 4
push 2
push 0x44e9e8
lea ecx, [esp + 0x28]
call fcn.0040bab0
jmp 0x40cd15
call fcn.00401ab0
lea eax, [esp + 0xf0]
lea edx, [esp + 0x1f4]
push eax
mov dword [esp + 0x1f4], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x100
jle 0x40cc8c
push esi
call fcn.0043bf47
add esp, 4
cmp eax, edi
mov dword [esp + 0x1f0], eax
je 0x40ca26
jmp 0x40cc93
mov eax, dword [esp + 0x1f0]
mov ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0xf0]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1f0]
mov eax, edx
mov byte [esp + 0x504], 4
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ccc0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov eax, dword [esp + 0x1f0]
lea ecx, [esp + 0x1f4]
cmp eax, ecx
mov byte [esp + 0x504], 0
je 0x40ccf7
push eax
call fcn.0043bf59
add esp, 4
push 2
push 0x44e9e8
lea ecx, [esp + 0x28]
call fcn.0040bab0
lea edx, [esp + 0xf0]
push edx
call ebp
mov dword [esp + 0x3c], eax
push 0x24
call fcn.0043bbef
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x504], 5
je 0x40cd3a
mov ecx, eax
call fcn.00402cb0
mov edi, eax
jmp 0x40cd3c
xor edi, edi
mov eax, dword [esp + 0x3c]
push 0xfa0
push 3
push eax
mov ecx, edi
mov byte [esp + 0x510], 0
call fcn.00402c70
mov ebx, eax
test ebx, ebx
je 0x40cebc
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40cde4
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x1b
push str.Error:_operation_timed_out.
lea ecx, [esp + 0x28]
call fcn.0040bab0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x44]
add ecx, 0x420
call fcn.0040bcc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40cdb9
mov ecx, edi
call fcn.00402c40
push edi
call fcn.0043c389
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
inc ecx
cmp eax, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x504], 0xffffffff
jb 0x40cefa
mov edx, dword [esp + 0x24]
push edx
jmp 0x40cef2
mov ecx, edi
call fcn.00401000
mov eax, dword [eax + 4]
mov esi, dword [eax]
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.00401000
cmp esi, dword [eax + 4]
je 0x40cea1
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea ebp, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ce13
sub ecx, ebp
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0040bab0
push 6
push str.__TTL
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov ecx, dword [esi + 0xc]
push 0xa
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.0043d549
lea eax, [esp + 0xdc]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ce57
sub eax, ecx
push eax
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
push 2
push 0x44e9e8
lea ecx, [esp + 0x28]
call fcn.0040bab0
lea ecx, [esp + 0x1c]
call fcn.004013a0
mov ecx, edi
call fcn.00401000
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x1c]
cmp esi, eax
jne 0x40ce04
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
add ecx, 0x420
call fcn.0040bcc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40ced0
mov ecx, edi
call fcn.00402c40
push edi
call fcn.0043c389
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
inc ecx
cmp eax, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x504], 0xffffffff
jb 0x40cefa
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0043c389
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4626f8]
push 0xff
lea edx, [esp + 0xf4]
push edx
push eax
push ecx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x40c980
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x50c]
xor eax, eax
lea edi, [ebx + 0x11c]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebx + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebx + 0x31c]
rep stosd dword es:[edi], eax
push 0xff
mov byte [esp + 0x1b], al
lea eax, [esp + 0xf4]
push eax
mov dword [ebx + 0x41c], edx
mov ecx, dword [0x4626f8]
push 0x2710
xor ebp, ebp
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], 0x2710
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x40d3d4
lea ebp, [ebx + 0x1c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0xf0]
push edx
mov dword [esp + 0x508], 6
call esi
cmp eax, 0xffffffff
jne 0x40d293
push 0x13
push str.Resolving_hostname
lea ecx, [esp + 0x28]
call fcn.00401ab0
lea ecx, [esp + 0xf0]
lea eax, [esp + 0x1f4]
push ecx
mov dword [esp + 0x1f4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x100
jle 0x40d03a
push esi
call fcn.0043bf47
add esp, 4
test eax, eax
mov dword [esp + 0x1f0], eax
je 0x40ca26
jmp 0x40d041
mov eax, dword [esp + 0x1f0]
mov ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0xf0]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1f0]
mov eax, edx
mov byte [esp + 0x504], 7
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d070
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov eax, dword [esp + 0x1f0]
lea ecx, [esp + 0x1f4]
cmp eax, ecx
mov byte [esp + 0x504], 6
je 0x40d0a7
push eax
call fcn.0043bf59
add esp, 4
push 2
push 0x44ec34
lea ecx, [esp + 0x28]
call fcn.0040bab0
lea edx, [esp + 0xf0]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40d1be
push 0xd
push str.unknown_host
lea ecx, [esp + 0x28]
call fcn.00401ab0
lea ecx, [esp + 0xf0]
lea eax, [esp + 0x2f8]
push ecx
mov dword [esp + 0x2f8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x100
jle 0x40d11e
push esi
call fcn.0043bf47
add esp, 4
test eax, eax
mov dword [esp + 0x2f4], eax
je 0x40ca26
jmp 0x40d125
mov eax, dword [esp + 0x2f4]
mov ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0xf0]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x2f4]
mov eax, edx
mov byte [esp + 0x504], 8
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d152
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov eax, dword [esp + 0x2f4]
lea ecx, [esp + 0x2f8]
cmp eax, ecx
mov byte [esp + 0x504], 6
je 0x40d189
push eax
call fcn.0043bf59
add esp, 4
push 2
push 0x44e9e8
lea ecx, [esp + 0x28]
call fcn.0040bab0
lea edx, [esp + 0x20]
push edx
lea ecx, [ebx + 0x420]
call fcn.0040bcc0
lea edx, [esp + 0x20]
push edx
lea ecx, [ebx + 0x420]
call fcn.0040bcc0
jmp 0x40d2a1
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x48], edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
test esi, esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], ecx
jne 0x40d1ea
xor edx, edx
mov dword [esp + 0x4c], edx
jmp 0x40d231
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
inc ebp
cmp ebp, 0x80
jle 0x40d213
push ebp
call fcn.0043bf47
add esp, 4
test eax, eax
mov dword [esp + 0x4c], eax
je 0x40ca26
jmp 0x40d217
mov eax, dword [esp + 0x4c]
mov ecx, ebp
mov ebp, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x4c]
mov eax, edx
mov byte [esp + 0x504], 9
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d240
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
mov byte [esp + 0x504], 6
je 0x40d271
push eax
call fcn.0043bf59
add esp, 4
push 2
push 0x44e9e8
lea ecx, [esp + 0x28]
call fcn.0040bab0
lea edx, [esp + 0x20]
push edx
lea ecx, [ebx + 0x420]
call fcn.0040bcc0
jmp 0x40d2a1
lea eax, [esp + 0xf0]
push eax
call esi
mov dword [esp + 0x44], eax
mov al, byte [esp + 0x17]
test al, al
jne 0x40d320
push 0xac
call fcn.0043bbef
add esp, 4
test eax, eax
je 0x40d2c3
mov ecx, eax
call fcn.0040b8a0
jmp 0x40d2c5
xor eax, eax
mov cx, word [esp + 0x10]
mov dword [ebp], eax
mov dword [eax + 0xa8], ebx
mov eax, dword [ebp]
mov dword [eax + 8], 0x40c530
mov eax, dword [ebp]
mov dword [eax + 0x3c], 0x40
mov eax, dword [ebp]
mov word [eax + 0xa6], cx
mov eax, dword [esp + 0x44]
or esi, 0xffffffff
cmp eax, esi
jne 0x40d328
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
inc ecx
cmp eax, 0x10
mov dword [esp + 0x10], ecx
mov dword [esp + 0x504], esi
jb 0x40d395
mov edx, dword [esp + 0x24]
push edx
jmp 0x40d38d
mov byte [esp + 0x17], 0
or esi, 0xffffffff
mov eax, dword [esp + 0x50c]
mov ecx, dword [esp + 0x44]
push eax
push 0x1f4
push ecx
mov ecx, dword [ebp]
call fcn.0040c720
cmp eax, esi
mov dword [ebp + 0x100], eax
jne 0x40d35b
mov ecx, dword [ebp]
test ecx, ecx
je 0x40d376
mov edx, dword [ecx]
push 1
call dword [edx]
jmp 0x40d376
test eax, eax
jne 0x40d366
mov byte [esp + 0x17], 1
jmp 0x40d37a
mov edx, dword [esp + 0x18]
inc edx
add ebp, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
inc dword [esp + 0x10]
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x504], esi
jb 0x40d395
mov eax, dword [esp + 0x24]
push eax
call fcn.0043c389
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [0x4626f8]
push 0xff
lea ecx, [esp + 0xf4]
push ecx
push edx
push eax
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x40cfb0
mov ebp, dword [esp + 0x18]
push 1
push 0xbb8
push 0
lea eax, [ebx + 0x11c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov esi, eax
cmp esi, 0x102
jne 0x40d69a
xor eax, eax
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], eax
mov byte [esp + 0x24], al
cmp ebp, eax
mov dword [esp + 0x504], 0xa
mov dword [esp + 0x1c], eax
jle 0x40d661
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + eax*4 + 0x21c]
mov dword [esp + 0x3c], edx
lea edx, [ecx + eax*4 + 0x31c]
mov dword [esp + 0x44], edx
lea edx, [ecx + eax*4 + 0x1c]
lea ebx, [eax - 1]
lea eax, [ecx + eax*4 + 0x11c]
lea ebp, [ecx + 0x1c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x10], eax
lea esp, [esp]
push 8
push str.Pinging
lea ecx, [esp + 0x28]
call fcn.00401ab0
mov eax, dword [ebp]
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
test edi, edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], ecx
jne 0x40d493
xor edx, edx
mov dword [esp + 0x4c], edx
jmp 0x40d4d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x80
jle 0x40d4bc
push esi
call fcn.0043bf47
add esp, 4
test eax, eax
mov dword [esp + 0x4c], eax
je 0x40ca26
jmp 0x40d4c0
mov eax, dword [esp + 0x4c]
mov ecx, esi
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x4c]
mov eax, edx
mov byte [esp + 0x504], 0xb
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d4e5
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
cmp eax, ecx
mov byte [esp + 0x504], 0xa
je 0x40d516
push eax
call fcn.0043bf59
add esp, 4
push 0x16
push str.:_request_timed_out._r_n
lea ecx, [esp + 0x28]
call fcn.0040bab0
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x420]
call fcn.0040bcc0
mov eax, dword [ebp + 0x200]
cmp eax, dword [esi + 0x41c]
jge 0x40d56f
mov ecx, dword [ebp]
push 4
push 0xbb8
xor eax, eax
push eax
call fcn.0040c720
mov edi, dword [esp + 0x1c]
mov dword [ebp + 0x100], eax
inc dword [ebp + 0x200]
jmp 0x40d64d
mov edi, dword [esp + 0x1c]
cmp edi, ebx
jge 0x40d5ff
mov ecx, ebx
lea eax, [ebp + 0x100]
sub ecx, edi
mov edx, dword [eax + 4]
mov dword [eax], edx
mov edx, dword [eax - 0xfc]
mov dword [eax - 0x100], edx
mov edx, dword [eax + 0x204]
mov dword [eax + 0x200], edx
mov edx, dword [eax + 0x104]
mov dword [eax + 0x100], edx
add eax, 4
dec ecx
jne 0x40d585
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
sub eax, 4
sub ecx, 4
sub edx, 4
sub esi, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], esi
mov dword [eax], 0
mov dword [ecx], 0
mov dword [edx], 0
mov dword [esi], 0
jmp 0x40d648
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x48]
xor eax, eax
dec edx
mov dword [ebp + 0x100], eax
mov dword [ebp], eax
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x200], eax
mov eax, 4
sub ecx, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
dec ebx
mov eax, dword [esp + 0x18]
inc edi
add ebp, 4
cmp edi, eax
mov dword [esp + 0x1c], edi
jl 0x40d460
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x504], 0xffffffff
jb 0x40d680
mov eax, dword [esp + 0x24]
push eax
call fcn.0043c389
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jmp 0x40d783
cmp esi, 0xc0
je 0x40d783
cmp esi, 0xffffffff
je 0x40d794
cmp esi, 0x3f
ja 0x40d794
mov edi, dword [esp + 0x40]
mov edx, dword [edi + esi*4 + 0x21c]
inc edx
mov dword [edi + esi*4 + 0x21c], edx
mov ecx, dword [edi + 0x41c]
mov eax, edx
cmp eax, ecx
mov ecx, dword [edi + esi*4 + 0x1c]
jl 0x40d76d
xor ebx, ebx
cmp ecx, ebx
je 0x40d6eb
mov edx, dword [ecx]
push 1
call dword [edx]
mov edx, dword [esp + 0x18]
dec edx
cmp esi, edx
jge 0x40d74e
mov ecx, edx
lea eax, [edi + esi*4 + 0x11c]
sub ecx, esi
nop
mov esi, dword [eax + 4]
mov dword [eax], esi
mov esi, dword [eax - 0xfc]
mov dword [eax - 0x100], esi
mov esi, dword [eax + 0x204]
mov dword [eax + 0x200], esi
mov esi, dword [eax + 0x104]
mov dword [eax + 0x100], esi
add eax, 4
dec ecx
jne 0x40d700
mov dword [esp + 0x18], edx
mov dword [edi + edx*4 + 0x11c], ebx
mov dword [edi + edx*4 + 0x1c], ebx
mov dword [edi + edx*4 + 0x31c], ebx
mov dword [edi + edx*4 + 0x21c], ebx
jmp 0x40d783
mov dword [edi + esi*4 + 0x11c], ebx
mov dword [edi + esi*4 + 0x1c], ebx
mov dword [edi + esi*4 + 0x31c], ebx
mov dword [edi + esi*4 + 0x21c], ebx
mov dword [esp + 0x18], edx
jmp 0x40d783
push 4
xor eax, eax
push 0xbb8
push eax
call fcn.0040c720
mov dword [edi + esi*4 + 0x11c], eax
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x40d794
mov ebx, dword [esp + 0x40]
jmp 0x40d3d0
mov ecx, dword [esp + 0x4fc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4f8
ret 4