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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xfd8], ebx
je 0x405778
cmp dword [esi + 0xfdc], ebx
je 0x405778
mov eax, dword [str.0123456789]
mov ecx, dword [0x42f4dc]
mov dx, word [0x42f4e0]
mov dword [esp + 0x10], eax
mov al, byte [0x42f4e2]
mov dword [esp + 0x14], ecx
mov ecx, dword [str.bwav_bkx.wav]
mov word [esp + 0x18], dx
mov edx, dword [0x42f4cc]
mov byte [esp + 0x1a], al
mov eax, dword [0x42f4d0]
mov dword [esp + 0x1c], ecx
mov cl, byte [0x42f4d4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xa
div ecx
lea eax, [esp + 0x1c]
push 0x64
push eax
push 1
push 4
mov dl, byte [esp + edx + 0x20]
mov byte [esp + 0x33], dl
call fcn.0040f8d0
add esp, 0x10
lea ecx, [esi + 0xb84]
mov dword [esi + 0xfc4], ebx
mov dword [esi + 0xfc0], ebx
mov dword [esi + 0x10b8], ebx
mov dword [esi + 0xfd0], ebx
mov byte [esi + 0x10ad], bl
mov byte [esi + 0x10ae], bl
mov byte [esi + 0x10af], bl
mov dword [esi + 0x10c0], ebx
mov byte [esi + 0x10b3], bl
mov byte [esi + 0x10b1], bl
mov byte [esi + 0x10b0], bl
mov byte [esi + 0x10a4], bl
mov byte [esi + 0x10a3], bl
mov byte [esi + 0x10a2], bl
mov byte [esi + 0x10a1], bl
mov byte [esi + 0x10a0], bl
mov byte [esi + 0x10c4], bl
call fcn.00401040
lea ecx, [esi + 0xda8]
call fcn.00401040
lea ecx, [esi + 0x520]
call fcn.00412df0
lea ecx, [esi + 0x4e8]
call fcn.00412df0
lea eax, [esi + 0x128]
lea edi, [esi + 0x558]
mov dword [esi + 0xb88], eax
mov dword [esi + 0xdac], eax
mov ebp, 5
mov ecx, edi
call fcn.00412950
add edi, 0x34
dec ebp
jne 0x405827
xor edi, edi
lea ebp, [esi + 0x6ac]
cmp byte [esi + edi + 0x79c], bl
je 0x40584c
mov ecx, ebp
call fcn.004120b0
inc edi
add ebp, 0x28
cmp edi, 6
jl 0x40583c
lea ecx, [esi + 0x7a8]
call fcn.00412b30
mov ecx, dword [esi + 0xfd4]
push ecx
lea ecx, [esi + 0x2c]
call fcn.004132f0
mov edx, dword [esi + 0xfd8]
lea edi, [esi + 8]
push edx
push 0xa4
push 0x8a
push edi
lea ecx, [esi + 0xd8]
call fcn.00412ff0
mov eax, dword [esi + 0xfdc]
lea ecx, [esi + 0xb0]
push eax
push 0xa4
push 0x2e4
push edi
call fcn.00412ff0
push 2
push 5
lea ebp, [esi + 0x78]
push 0x7c
push 0x273
push str.bmp_main_zhuang.bmp
mov ecx, ebp
call fcn.00412bb0
mov ecx, ebp
call fcn.00412dd0
cmp dword [esi + 0xfe8], ebx
jne 0x4058e3
push 0x7c
push 0x85
mov ecx, ebp
call fcn.00412db0
push edi
lea edi, [esi + 0x128]
mov ecx, edi
call fcn.004143b0
cmp dword [esi + 0xfe8], ebx
je 0x405902
push 1
push 0x244
jmp 0x405908
push ebx
push 0x154
push 0x190
mov ecx, edi
call fcn.00414570
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00415c0f
add esp, 4
call fcn.00415c1c
and eax, 0x80000007
jns 0x405934
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, dword [str.0123456789abc]
mov edx, dword [0x42f4a8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x42f4ac]
mov dword [esp + 0x20], edx
mov dx, word [0x42f4b0]
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
mov edx, dword [0x42f49c]
xor ecx, ecx
mov dword [esp + 0x2a], ecx
mov dword [esp + 0x3c], edx
mov dl, byte [0x42f4a0]
mov word [esp + 0x2e], cx
mov ecx, dword [0x42f498]
mov byte [esp + 0x40], dl
mov edi, dword [str.bmp_mj_mjx_x.bmp]
xor edx, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x42f49c]
mov al, byte [esp + eax + 0x1c]
mov word [esp + 0x41], dx
mov ebp, dword [0x42f494]
mov byte [esp + 0x43], dl
mov dl, byte [0x42f4a0]
mov dword [esp + 0x50], ecx
xor ecx, ecx
mov byte [esp + 0x54], dl
mov dl, byte [esp + 0x1c]
mov word [esp + 0x55], cx
mov dword [esp + 0x30], edi
mov byte [esp + 0x57], cl
mov dword [esp + 0x44], edi
mov byte [esp + 0x3b], dl
lea ecx, [esp + 0x44]
mov byte [esp + 0x4d], al
mov byte [esp + 0x39], al
mov al, byte [esp + 0x1d]
lea edi, [esi + 0x168]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x50], ebp
mov byte [esp + 0x57], al
call fcn.00410e70
push edi
lea ecx, [esi + 0xda8]
call fcn.00414290
push edi
lea ecx, [esi + 0xb84]
call fcn.00414290
mov al, byte [esp + 0x1e]
push 1
lea ecx, [esp + 0x34]
push 0x26
push ecx
lea ecx, [esi + 0x7c8]
mov byte [esp + 0x47], al
call fcn.0040fb00
mov dl, byte [esp + 0x1f]
push 1
lea eax, [esp + 0x34]
push 0x26
push eax
lea ecx, [esi + 0x7ec]
mov byte [esp + 0x47], dl
call fcn.0040fb00
mov cl, byte [esp + 0x20]
push 1
lea edx, [esp + 0x34]
mov byte [esp + 0x3f], cl
push 1
push edx
lea ecx, [esi + 0x810]
call fcn.0040fb00
mov al, byte [esp + 0x21]
push 1
mov byte [esp + 0x3f], al
lea ecx, [esp + 0x34]
push 0x26
push ecx
lea ecx, [esi + 0x834]
call fcn.0040fb00
mov dl, byte [esp + 0x22]
push 1
lea eax, [esp + 0x34]
push 1
push eax
lea ecx, [esi + 0x858]
mov byte [esp + 0x47], dl
call fcn.0040fb00
mov cl, byte [esp + 0x23]
push 1
lea edx, [esp + 0x34]
mov byte [esp + 0x3f], cl
push 1
push edx
lea ecx, [esi + 0x87c]
call fcn.0040fb00
mov al, byte [esp + 0x24]
push 1
lea ecx, [esp + 0x34]
push 0x26
push ecx
lea ecx, [esi + 0x8a0]
mov byte [esp + 0x47], al
call fcn.0040fb00
mov dl, byte [esp + 0x25]
push 1
lea eax, [esp + 0x34]
push 1
push eax
lea ecx, [esi + 0x8c4]
mov byte [esp + 0x47], dl
call fcn.0040fb00
mov cl, byte [esp + 0x26]
push 1
lea edx, [esp + 0x34]
mov byte [esp + 0x3f], cl
push 0x26
push edx
lea ecx, [esi + 0x8e8]
call fcn.0040fb00
mov al, byte [esp + 0x27]
push 1
lea ecx, [esp + 0x34]
push 0x26
push ecx
lea ecx, [esi + 0x90c]
mov byte [esp + 0x47], al
call fcn.0040fb00
mov dword [esi + 0x10bc], ebx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x48
ret