Function at 0x487148
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
movzx eax, word [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ecx
push str.defrag_ip
call fcn.004aa580
pop ecx
mov dword [ebp - 0x150], 1
mov dword [ebp - 4], 0
call fcn.004f2a4c
mov edx, dword [0x5bed48]
neg edx
add edx, eax
cmp edx, dword [0x50d264]
jbe 0x4871c4
mov dword [0x5bed48], eax
push eax
call fcn.00484b64
pop ecx
lea ecx, [ebp - 0x148]
call fcn.004c3658
mov dword [ebp - 0x11c], 1
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x148], esi
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x144], edi
movzx eax, word [ecx + 4]
mov word [ebp - 0x140], ax
movzx edx, byte [ecx + 9]
mov byte [ebp - 0x13c], dl
movzx ebx, word [ecx + 6]
mov word [ebp - 0x2a4], bx
mov ax, word [ebp - 0x2a4]
xchg al, ah
mov ebx, dword [ebp + 0x10]
movzx edx, byte [ebx]
and edx, 0xf
add edx, edx
add edx, edx
movzx eax, ax
mov dword [ebp - 0x118], edx
lea ecx, [eax + eax]
add ecx, ecx
mov dword [ebp - 0x14], eax
add ecx, ecx
mov word [ebp - 0x114], cx
movzx esi, word [ebx + 2]
mov word [ebp - 0x29c], si
mov ax, word [ebp - 0x29c]
xchg al, ah
mov edx, dword [ebp - 0x118]
sub eax, edx
lea esi, [ebp - 0x108]
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x148]
lea ebx, [ebp - 0x10c]
mov dword [ebp - 0x10c], eax
mov ecx, 0x5beb50
push ebx
push esi
call fcn.004befdc
mov ebx, dword [0x5beb54]
mov edx, dword [ebx]
cmp edx, ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x104], ebx
je 0x4888ac
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
movzx edi, word [ecx + 4]
movzx esi, word [eax + 8]
cmp esi, edi
jne 0x4875c8
mov esi, dword [eax + 4]
cmp esi, dword [ecx + 0xc]
jne 0x4875c8
mov esi, dword [eax]
cmp esi, dword [ecx + 0x10]
jne 0x4875c8
movzx eax, byte [eax + 0xc]
movzx esi, byte [ecx + 9]
cmp eax, esi
jne 0x4875c8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x64], eax
cmp edx, dword [ebp - 0x108]
je 0x487304
push str.wrong_find_result_in_defrag_ip
call fcn.00429c10
pop ecx
mov ebx, dword [0x5beb54]
mov edx, dword [ebp - 0x64]
cmp edx, ebx
jne 0x4884e7
mov eax, dword [ebp - 0x14]
test ah, 0x20
je 0x48731f
xor eax, eax
mov word [ebp - 0x13e], ax
jmp 0x487336
movzx edx, word [ebp - 0x110]
movzx eax, word [ebp - 0x114]
add edx, eax
mov word [ebp - 0x13e], dx
call fcn.004f2a4c
mov dword [ebp - 0x128], eax
movzx edx, word [ebp - 0x114]
movzx eax, word [ebp - 0x110]
add edx, eax
cmp edx, dword [0x50d268]
jbe 0x4873b2
inc dword [0x5268ac]
push str.defrag_ip:_ip_defrag_buf_size_to_small
call fcn.00429c10
pop ecx
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x148]
call fcn.004c35d8
mov dword [ebp - 0x150], 0
mov ecx, 0x5beb80
call fcn.004b4de0
test eax, eax
jne 0x48847c
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xfc], 0
push 0x2c
call fcn.004fd56e
pop ecx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 4], 2
test eax, eax
je 0x487429
mov edx, 1
xor ecx, ecx
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0x294], eax
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x294]
xor ecx, ecx
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 0x294]
mov dword [edx + 0x28], ecx
mov esi, dword [ebp - 0xf8]
inc dword [0x5bee24]
mov dword [ebp - 0xfc], ecx
jmp 0x48742b
xor esi, esi
mov dword [ebp - 4], 1
lea ebx, [esi + 0x10]
movzx ecx, word [ebp - 0x114]
xor edx, edx
movzx eax, word [ebp - 0x110]
push edx
push eax
push edx
push ecx
push ebx
call fcn.0042cb88
add esp, 0x14
movzx edi, word [ebp - 0x140]
cmp dword [esi + 0x24], 0
mov word [esi + 8], di
movzx eax, word [ebp - 0x13e]
mov word [esi + 0xa], ax
movzx edx, byte [ebp - 0x13c]
mov byte [esi + 0xc], dl
mov ecx, dword [ebp - 0x148]
mov dword [esi], ecx
mov ebx, dword [ebp - 0x144]
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x128]
mov ebx, dword [0x50d268]
mov dword [esi + 0x20], eax
je 0x4874a8
push dword [esi + 0x24]
call sub.MSVCR70.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x28]
sub dword [0x5bee28], eax
mov dword [esi + 0x28], 0
push ebx
call fcn.004fd6e2
pop ecx
mov dword [esi + 0x24], eax
test eax, eax
je 0x4874cf
add dword [0x5bee28], ebx
mov dword [esi + 0x28], ebx
movzx ecx, word [ebp - 0x114]
mov edx, dword [ebp + 0x10]
movzx eax, word [ebp - 0x110]
add ecx, dword [esi + 0x24]
add edx, dword [ebp - 0x118]
push eax
push edx
push ecx
call fcn.004fd7e4
add esp, 0xc
mov dword [ebp - 0x5c], esi
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x5beb50
push edx
call fcn.004c098c
lea eax, [ebp - 0x148]
mov dword [ebp - 0x154], eax
mov dword [ebp - 4], 0x1a
cmp dword [ebp - 0x124], 0
je 0x48753b
push dword [ebp - 0x124]
call sub.MSVCR70.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x120]
sub dword [0x5bee28], eax
mov dword [ebp - 0x120], 0
dec dword [0x5bee24]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x134], 0
je 0x48757a
movzx eax, byte [ebp - 0x40]
mov byte [ebp - 0x3c], al
push dword [ebp - 0x134]
call sub.MSVCR70.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
cmp dword [0x5beb84], 0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
je 0x4884e0
mov eax, dword [0x5beb88]
sub eax, dword [0x5beb84]
sar eax, 3
test eax, eax
jne 0x4884c5
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 0x11]
test eax, eax
je 0x488850
mov dword [ebp - 0x104], ebx
cmp edx, ebx
jne 0x4872a8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x64], eax
jmp 0x4872e8
mov edi, dword [0x5beb88]
lea esi, [edi - 8]
add esp, 0xfffffff0
mov byte [ebp - 0x100], 0
lea edx, [esp + 0xc]
movzx eax, byte [ebp - 0x100]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], 0x5beb80
mov byte [edx], al
call fcn.004abafc
add esp, 0x10
mov eax, dword [0x5beb88]
add eax, 0xfffffff8
mov dword [0x5beb88], eax
jmp 0x48739b
movzx eax, byte [ebp - 0x38]
mov edx, dword [0x5beb88]
add edx, 0xfffffff8
mov byte [ebp - 0x34], al
mov dword [0x5beb88], edx
jmp 0x4875b1
xor eax, eax
jmp 0x4875a9
lea ebx, [edx + 0xc]
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
test ah, 0x20
jne 0x48850e
movzx edx, word [ebp - 0x110]
movzx eax, word [ebp - 0x114]
add edx, eax
mov word [ecx + 0xa], dx
mov ecx, dword [ebx]
movzx ebx, word [ebp - 0x114]
add ecx, 0x10
movzx eax, word [ebp - 0x110]
add eax, ebx
cdq
push edx
push eax
push 0
push ebx
push ecx
call fcn.0042cb88
add esp, 0x14
call fcn.004f2a4c
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x20], eax
movzx ebx, word [ebp - 0x114]
movzx edx, word [ebp - 0x110]
lea eax, [ebx + edx]
cmp eax, dword [0x50d268]
jbe 0x488619
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x148]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x488590
push eax
call sub.MSVCR70.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x120]
sub dword [0x5bee28], eax
mov dword [ebp - 0x120], 0
dec dword [0x5bee24]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4885c8
mov byte [ebp - 0x50], 0
push eax
call sub.MSVCR70.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x150], eax
mov eax, dword [0x5beb84]
test eax, eax
je 0x488809
mov edx, dword [0x5beb88]
sub edx, eax
sar edx, 3
test edx, edx
jne 0x4887f7
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
add ebx, dword [eax + 0x24]
add ecx, dword [ebp - 0x118]
push edx
push ecx
push ebx
call fcn.004fd7e4
add esp, 0xc
mov eax, dword [ebp - 0x24]
movzx edx, word [eax + 0xa]
test edx, edx
je 0x487509
lea ecx, [eax + 0x10]
push 0
push edx
push ecx
call fcn.0042df5c
add esp, 0xc
test eax, eax
je 0x487509
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 0x24]
movzx ecx, word [eax + 0xa]
mov esi, dword [ebp + 0x10]
movzx eax, byte [esi + 9]
cmp eax, 6
je 0x488784
cmp eax, 0x2f
je 0x488711
cmp eax, 0x11
jne 0x487509
mov eax, dword [ebp - 0x18]
cdq
add dword [0x5beae8], eax
adc dword [0x5beaec], edx
cmp dword [0x50d26c], 0
je 0x4886d9
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
bswap eax
mov edx, eax
mov esi, dword [ebp + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x17c], edi
mov eax, dword [ebp - 0x17c]
bswap eax
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x1c]
push eax
push edx
call fcn.0048496c
add esp, 0x18
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0xc]
call fcn.004c357c
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4886f5
push 1
call fcn.004c6180
lea eax, [ebp - 0x4c]
mov ecx, 0x5beb50
push dword [ebp - 0x64]
push eax
call fcn.004bf10c
inc dword [0x5bed44]
jmp 0x487509
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
bswap eax
mov edx, eax
mov esi, dword [ebp + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x16c], edi
mov eax, dword [ebp - 0x16c]
bswap eax
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x1c]
push eax
push edx
call fcn.00479188
add esp, 0x18
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0xc]
call fcn.004c357c
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x488768
push 1
call fcn.004c6180
lea eax, [ebp - 0x48]
mov ecx, 0x5beb50
push dword [ebp - 0x64]
push eax
call fcn.004bf10c
inc dword [0x5bed44]
jmp 0x487509
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
bswap eax
mov edx, eax
mov esi, dword [ebp + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x15c], edi
mov eax, dword [ebp - 0x15c]
bswap eax
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x1c]
push eax
push edx
call fcn.00478f50
add esp, 0x18
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0xc]
call fcn.004c357c
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4887db
push 1
call fcn.004c6180
lea eax, [ebp - 0x44]
mov ecx, 0x5beb50
push dword [ebp - 0x64]
push eax
call fcn.004bf10c
inc dword [0x5bed44]
jmp 0x487509
mov eax, dword [0x5beb88]
add eax, 0xfffffff8
mov dword [0x5beb88], eax
jmp 0x488602
xor edx, edx
jmp 0x4885fa
mov esi, dword [edx + 8]
movsx eax, byte [esi + 0x11]
test eax, eax
je 0x48888c
mov eax, dword [edx + 4]
movsx esi, byte [eax + 0x11]
test esi, esi
mov dword [ebp - 0x24], eax
jne 0x488884
cmp edx, dword [eax + 8]
jne 0x488884
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
movsx esi, byte [edx + 0x11]
test esi, esi
jne 0x488884
cmp eax, dword [edx + 8]
je 0x48886e
mov edx, dword [ebp - 0x24]
jmp 0x4875d4
mov edx, esi
mov eax, dword [esi]
movsx esi, byte [eax + 0x11]
test esi, esi
jne 0x4888a4
mov edx, dword [edx]
mov eax, dword [edx]
movsx esi, byte [eax + 0x11]
test esi, esi
je 0x488898
mov dword [ebp - 0x24], edx
jmp 0x4875d4
mov dword [ebp - 0x64], edx
jmp 0x4872e8