Function at 0x415351
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
mov ebx, eax
push edi
push esi
sub esp, 0x44
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ebx
mov edx, dword [ebx]
mov dword [ebx + 0x20], 0
cmp byte [edx + 0x94], 0x80
jne 0x4153a7
mov dl, byte [edx + 0x97]
test dl, dl
je 0x4153a7
mov eax, dword [ebx + 0x14]
call fcn.0041be10
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov byte [edx + 0x76], 0
mov dword [ecx + 0x58], 0
mov dword [eax + 0x20], 1
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx + 8]
call fcn.0041daf2
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
call fcn.0041dae0
xor edx, edx
mov eax, dword [ebx]
call fcn.0041d5a3
mov ecx, dword [ebx]
mov edx, 0x12c
mov eax, ecx
mov ecx, dword [ecx]
call dword [ecx + 4]
mov dword [esp + 0x40], 0
push 1
xor ecx, ecx
sub esp, 0xc
mov edx, 0x1e
mov eax, dword [ebx]
call fcn.00419d71
add esp, 0x10
test eax, eax
je 0x415400
mov dword [esp + 0x40], 2
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x40]
and bl, 0xfe
mov ecx, 1
mov dword [esp + 0x40], ebx
mov edx, 0x1f
mov eax, dword [edi]
call fcn.00419e22
mov dword [esp + 0x28], eax
mov eax, ebx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x415438
or al, 4
jmp 0x41543f
mov eax, dword [esp + 0x40]
and al, 0xfb
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x40], eax
mov ebx, dword [ebx]
cmp dword [ebx + 0x18], 0
jne 0x4154ad
mov ebx, dword [ebx + 8]
cmp byte [ebx + 0xb], 0
jne 0x415466
cmp byte [ebx + 0x76], 0
je 0x415466
xor eax, eax
jmp 0x41546b
mov eax, 1
test eax, eax
jne 0x4154ad
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x10]
mov ebx, dword [esi]
mov edx, 0x64
mov eax, ebx
mov ebx, dword [ebx]
call dword [ebx + 4]
mov eax, dword [esi]
cmp dword [eax + 0x18], 0
jne 0x4154a9
mov eax, dword [eax + 8]
cmp byte [eax + 0xb], 0
jne 0x4154a0
cmp byte [eax + 0x76], 0
je 0x4154a0
xor edi, edi
jmp 0x4154a5
mov edi, 1
test edi, edi
je 0x415477
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x34], 0
mov eax, dword [ebx]
call fcn.0041d729
mov dword [esp + 0x30], eax
lea ecx, [ebx + 0x2c]
push ecx
lea edx, [ebx + 0x24]
sub esp, 0xc
lea ecx, [ebx + 0x28]
mov eax, dword [ebx + 8]
call fcn.0041d980
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x24]
add esp, 0x10
imul eax, dword [ecx + 0x34]
mov ecx, eax
sar ecx, 0x1f
and ecx, 3
add eax, ecx
mov ecx, dword [ebx + 0x28]
sar eax, 2
mov dword [ebx + 0x24], eax
mov eax, dword [ebx]
imul ecx, dword [eax + 0x34]
mov eax, ecx
sar eax, 0x1f
and eax, 3
add ecx, eax
mov eax, dword [ebx]
sar ecx, 2
mov dword [ebx + 0x28], ecx
cmp dword [eax + 0x28], 0
je 0x415521
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x10]
call fcn.004180d7
mov ebx, dword [esp + 0x58]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 8]
cmp byte [ebx + 0xb], 0
jne 0x415540
cmp byte [ebx + 0x76], 0
je 0x415540
xor eax, eax
jmp 0x415545
mov eax, 1
test eax, eax
jne 0x415b0a
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x40]
mov ebx, ebx
add eax, 0
mov eax, dword [edi]
mov eax, dword [eax + 8]
cmp byte [eax + 0x75], 0
je 0x415576
mov byte [eax + 0x75], 0
mov eax, 1
jmp 0x415578
xor eax, eax
test eax, eax
je 0x41563b
mov ecx, esi
test cl, 2
je 0x4155e0
push 1
xor ecx, ecx
sub esp, 0xc
mov edx, 0x1e
mov eax, dword [edi]
call fcn.00419d71
add esp, 0x10
test eax, eax
jne 0x4155d3
mov dword [esp + 0xc], esi
mov edx, 1
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], 0
call fcn.004173c7
mov eax, dword [edi]
call fcn.0041d729
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
and cl, 0xfd
mov esi, ecx
jmp 0x41561f
mov eax, esi
or al, 2
mov esi, eax
jmp 0x41561f
push 1
xor ecx, ecx
sub esp, 0xc
mov edx, 0x1e
mov eax, dword [edi]
call fcn.00419d71
add esp, 0x10
test eax, eax
je 0x415618
mov ecx, esi
mov edx, 1
or cl, 2
mov dword [esp + 0xc], ecx
mov eax, dword [edi + 0xc]
call fcn.004173c7
mov eax, dword [esp + 0xc]
mov esi, eax
jmp 0x41561f
mov eax, esi
and al, 0xfd
mov esi, eax
mov eax, esi
mov ecx, 1
and al, 0xfe
mov edx, 0x1f
mov esi, eax
mov eax, dword [edi]
call fcn.00419e22
mov dword [esp + 0x28], eax
mov ecx, dword [edi]
mov eax, dword [esp + 0x24]
cmp dword [ecx + 0x20], eax
je 0x415674
test eax, eax
sete al
and eax, 0xff
mov dword [esp + 0x24], eax
je 0x415660
mov eax, esi
or al, 4
mov esi, eax
jmp 0x415667
mov eax, esi
and al, 0xfb
mov esi, eax
mov edx, 1
mov eax, dword [edi + 0xc]
call fcn.004173c7
mov edx, esi
mov eax, dword [edi + 0xc]
call fcn.00417de4
test eax, eax
je 0x4156a0
mov dword [esp + 0x34], 0
mov eax, dword [edi]
mov ebx, 0x32
call fcn.0041d729
mov dword [esp + 0x30], eax
jmp 0x41570c
cmp dword [esp + 0x34], 0
jne 0x415707
mov eax, esi
test al, 2
jne 0x415707
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x14], 0
jne 0x4156d9
cmp dword [esp + 0x28], 0
je 0x415700
mov eax, dword [edi]
call fcn.0041d729
sub eax, dword [esp + 0x30]
cmp eax, 0x1388
jbe 0x415700
mov eax, dword [edi + 0xc]
mov edx, esi
mov dword [esp + 0x34], 1
mov ebx, 0x32
call fcn.00417228
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 0x14], 0
jmp 0x41570c
mov ebx, 0x64
jmp 0x41570c
mov ebx, 0x64
mov eax, dword [edi]
cmp dword [eax + 0x5c], 0
je 0x415926
mov ecx, dword [eax + 0x90]
test ecx, ecx
je 0x415926
cmp ecx, 6
jne 0x415790
mov ecx, dword [eax + 0x60]
add ecx, dword [eax + 0x78]
mov eax, dword [eax + 0xc]
cmp ecx, eax
jle 0x415740
jmp 0x415748
mov ecx, dword [edi]
mov eax, dword [ecx + 0x60]
add eax, dword [ecx + 0x78]
mov edx, dword [edi]
mov ecx, dword [edx + 0x7c]
mov ebp, dword [edx + 0x74]
add ebp, ecx
mov edx, dword [edx + 0x78]
push ebp
push eax
mov eax, dword [edi + 0xc]
sub esp, 0xc
call fcn.00415ec0
mov dl, 0xf
mov eax, dword [edi + 0x10]
call fcn.00418190
mov eax, dword [edi + 0x10]
call fcn.00418208
mov ecx, dword [edi]
mov edx, 0x64
mov eax, ecx
mov ecx, dword [ecx]
call dword [ecx + 4]
add esp, 0x14
jmp 0x41591a
mov eax, dword [edi]
cmp dword [eax + 0x90], 7
jne 0x415820
mov ecx, dword [eax + 0x64]
add ecx, dword [eax + 0x7c]
mov eax, dword [eax + 0x10]
cmp ecx, eax
jle 0x4157b0
jmp 0x4157b8
mov ecx, dword [edi]
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x60]
add ecx, dword [eax + 0x78]
mov eax, dword [eax + 0xc]
cmp ecx, eax
jle 0x4157d0
jmp 0x4157d8
mov ecx, dword [edi]
mov eax, dword [ecx + 0x60]
add eax, dword [ecx + 0x78]
push dword [esp + 0x18]
mov edx, dword [edi]
push eax
sub esp, 0xc
mov eax, dword [edi + 0xc]
mov ecx, dword [edx + 0x64]
add ecx, dword [edx + 0x7c]
sub ecx, dword [edx + 0x74]
mov edx, dword [edx + 0x78]
call fcn.00415ec0
mov dl, 0xf
mov eax, dword [edi + 0x10]
call fcn.00418190
mov eax, dword [edi + 0x10]
call fcn.00418208
mov ecx, dword [edi]
mov edx, 0x64
mov eax, ecx
mov ecx, dword [ecx]
call dword [ecx + 4]
add esp, 0x14
jmp 0x41591a
mov eax, dword [edi]
cmp dword [eax + 0x90], 8
jne 0x415890
mov ecx, dword [eax + 0x64]
add ecx, dword [eax + 0x7c]
mov eax, dword [eax + 0x10]
cmp ecx, eax
jle 0x415840
jmp 0x415848
mov ecx, dword [edi]
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x7c]
mov ecx, dword [edi]
push eax
mov eax, dword [edi + 0xc]
mov edx, dword [ecx + 0x78]
mov ebp, dword [ecx + 0x70]
add ebp, edx
mov ecx, dword [ecx + 0x7c]
push ebp
sub esp, 0xc
call fcn.00415ec0
mov dl, 0xf
mov eax, dword [edi + 0x10]
call fcn.00418190
mov eax, dword [edi + 0x10]
call fcn.00418208
mov ecx, dword [edi]
mov edx, 0x64
mov eax, ecx
mov ecx, dword [ecx]
call dword [ecx + 4]
add esp, 0x14
jmp 0x41591a
mov eax, dword [edi]
cmp dword [eax + 0x90], 9
jne 0x41591a
mov ecx, dword [eax + 0x64]
add ecx, dword [eax + 0x7c]
mov eax, dword [eax + 0x10]
cmp ecx, eax
jle 0x4158b0
jmp 0x4158b8
mov ecx, dword [edi]
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x60]
add ecx, dword [eax + 0x78]
mov eax, dword [eax + 0xc]
cmp ecx, eax
jle 0x4158d0
jmp 0x4158d8
mov ecx, dword [edi]
mov eax, dword [ecx + 0x60]
add eax, dword [ecx + 0x78]
mov ebp, dword [esp + 0x14]
push ebp
mov ebp, dword [edi]
push eax
mov eax, dword [edi + 0xc]
mov edx, dword [ebp + 0x60]
sub esp, 0xc
add edx, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x7c]
sub edx, dword [ebp + 0x70]
call fcn.00415ec0
mov dl, 0xf
mov eax, dword [edi + 0x10]
call fcn.00418190
mov eax, dword [edi + 0x10]
call fcn.00418208
mov ecx, dword [edi]
mov edx, 0x64
mov eax, ecx
mov ecx, dword [ecx]
call dword [ecx + 4]
add esp, 0x14
mov eax, dword [edi]
mov dword [eax + 0x90], 0
mov eax, dword [edi + 8]
call fcn.0041daf2
cmp dword [esp + 0x2c], eax
je 0x415980
mov edx, 1
mov eax, dword [edi + 0x10]
call fcn.00418143
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x76], 0
mov dword [eax + 0x58], 0
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov byte [eax + 0x75], 1
mov eax, dword [edi + 8]
call fcn.0041dae0
mov ebp, eax
mov eax, dword [edi + 8]
call fcn.0041daf2
mov ecx, dword [edi]
mov edx, ebp
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
jmp 0x415b02
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi + 8]
sub esp, 0xc
lea ecx, [esp + 0x48]
lea edx, [esp + 0x4c]
call fcn.0041d980
add esp, 0x10
mov ecx, dword [edi]
mov eax, dword [esp + 0x3c]
imul eax, dword [ecx + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, ecx
sar eax, 0x1f
and eax, 3
add ecx, eax
mov eax, dword [esp + 0x38]
sar ecx, 2
mov dword [esp + 0x3c], ecx
mov edx, dword [edi]
imul eax, dword [edx + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov edx, eax
sar edx, 0x1f
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x38], eax
mov edx, dword [edi]
cmp dword [edx + 0x28], 0
je 0x415a09
cmp dword [edi + 0x24], ecx
jne 0x4159f3
cmp dword [edi + 0x28], eax
je 0x415a09
mov edx, dword [esp + 0x3c]
mov eax, dword [edi + 0x10]
mov dword [edi + 0x24], edx
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x28], ecx
call fcn.004180d7
mov edx, dword [esp + 0x20]
cmp dword [edi + 0x2c], edx
je 0x415a1d
mov dword [edi + 0x2c], edx
mov eax, dword [edi + 0x10]
call fcn.004180b0
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x18], 0
je 0x415a49
mov edx, 1
mov eax, dword [edi + 0x10]
call fcn.00418143
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x76], 0
mov dword [eax + 0x58], 0
jmp 0x415b02
mov ecx, dword [edi]
mov edx, ebx
mov eax, ecx
mov ecx, dword [ecx]
call dword [ecx + 4]
mov eax, dword [edi + 8]
call fcn.0041daf2
cmp dword [esp + 0x2c], eax
je 0x415ab0
mov edx, 1
mov eax, dword [edi + 0x10]
call fcn.00418143
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x76], 0
mov dword [eax + 0x58], 0
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov byte [eax + 0x75], 1
mov eax, dword [edi + 8]
call fcn.0041dae0
mov ebp, eax
mov eax, dword [edi + 8]
call fcn.0041daf2
mov ecx, dword [edi]
mov edx, ebp
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
jmp 0x415b02
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x18], 0
je 0x415ae0
mov edx, 1
mov eax, dword [edi + 0x10]
call fcn.00418143
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x76], 0
mov dword [eax + 0x58], 0
jmp 0x415b02
mov eax, dword [edi]
mov eax, dword [eax + 8]
cmp byte [eax + 0xb], 0
jne 0x415af5
cmp byte [eax + 0x76], 0
je 0x415af5
xor eax, eax
jmp 0x415afa
mov eax, 1
test eax, eax
je 0x415560
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], esi
mov ebx, dword [esp + 0x58]
mov edx, 1
mov eax, dword [ebx]
call fcn.0041d5a3
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x18], 0
jne 0x415b47
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov byte [eax + 0x75], 1
mov eax, dword [ebx + 8]
call fcn.0041dae0
mov edi, eax
mov eax, dword [ebx + 8]
call fcn.0041daf2
mov ecx, dword [ebx]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx + 0x10]
call fcn.00418174
mov dword [ebx + 0x20], 1
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret