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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdb38
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x4d35fa
mov eax, dword [esi + 0x2c4]
push eax
mov ecx, 0x6d5cf0
call fcn.004d6f20
mov ebx, eax
mov ecx, esi
mov dword [ebp - 0x74], ebx
call fcn.004ac120
mov eax, dword [esi + 0x2d8]
mov edi, 1
test al, 1
je 0x4d29d6
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x20], eax
call fcn.0059a110
add eax, 0xf
push 0x305
mov ecx, 0x6c6dd0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00448f80
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d29a0
push 0xffffff00
lea ecx, [ebp - 0x20]
push ecx
sub eax, edx
push eax
push 0x305
mov ecx, 0x6c6dd0
call fcn.00448f80
push eax
push 0
mov ecx, 0x603a40
call fcn.004ad3f0
mov ebx, edi
jmp 0x4d2bed
movzx edi, word [esi + 0x2dc]
cmp edi, 1
je 0x4d29eb
cmp edi, 6
je 0x4d29eb
xor edx, edx
jmp 0x4d29f0
mov edx, 1
movzx ecx, word [ebx + 0x4a]
mov ebx, 0x100
cmp cx, bx
sbb ebx, ebx
inc ebx
test edx, ebx
je 0x4d2a6b
mov edx, 0x122
cmp cx, dx
ja 0x4d2a6b
push 0
lea edi, [esi + 0x330]
push edi
push 0xcc
mov ecx, 0x6d58c8
call fcn.004b5880
fld dword [0x5cfe98]
fst dword [ebp - 0x70]
push 0xffffffffffffffff
fstp dword [ebp - 0x6c]
lea eax, [ebp - 0x7c]
fld dword [esi + 0x1e4]
push eax
fld qword [0x5d7870]
push ecx
fadd st(1), st(0)
lea ecx, [ebp - 0x70]
fxch st(1)
fstp dword [ebp - 0x7c]
fadd dword [esi + 0x1e8]
fstp dword [ebp - 0x78]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
jmp 0x4d2be8
mov edx, 0x800
cmp dx, cx
sbb edx, edx
xor ebx, ebx
neg edx
cmp edi, 1
sete bl
test ebx, edx
je 0x4d2a8d
mov edx, 0x834
cmp cx, dx
jbe 0x4d2a0d
test eax, 0x1000
je 0x4d2b5b
mov eax, dword [esi + 0x2c4]
mov ecx, dword [0x6d8f5c]
lea edx, [ebp - 0x6c]
push edx
push eax
push 2
add ecx, 0x69c
mov dword [ebp - 0x6c], 0
call fcn.00417120
fstp dword [ebp - 0x78]
fldz
fld dword [ebp - 0x78]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4d2b1b
fld1
movzx ecx, word [esi + 0x226]
fstp dword [ebp - 0x18]
mov dword [ebp - 0x78], ecx
push 0xff000000
lea edx, [ebp - 0x68]
fst dword [ebp - 0x14]
push edx
fld dword [esi + 0x1e4]
push ecx
fstp dword [ebp - 0x68]
lea eax, [ebp - 0x18]
fld1
lea ecx, [esi + 0x310]
fsubrp st(1)
fild dword [ebp - 0x78]
fmulp st(1)
fadd dword [esi + 0x1e8]
fstp dword [ebp - 0x64]
fstp dword [esp]
push 0
push eax
call fcn.004b0390
jmp 0x4d2b1f
fstp st(0)
fstp st(0)
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x30], eax
call fcn.0059a110
push 0xffffff00
lea ecx, [ebp - 0x30]
push ecx
mov ebx, 1
add eax, 0xf
push 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push 0x5eb
jmp 0x4d2bc8
mov edx, dword [esi + 0x2c0]
push edx
mov ecx, 0x6d9f28
call fcn.00544850
test eax, eax
je 0x4d2be1
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x30], eax
call fcn.0059a110
add eax, 0xf
mov ebx, 1
push 0x305
mov ecx, 0x6c6dd0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00448f80
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d2bb0
push 0xffffff00
lea ecx, [ebp - 0x30]
push ecx
sub eax, edx
push eax
push 0x4de
mov ecx, 0x6c6dd0
call fcn.00448f80
push eax
push 0
mov ecx, 0x603a40
call fcn.004ad3f0
jmp 0x4d2bed
mov ecx, esi
call fcn.004ae1e0
mov ebx, 1
mov edx, dword [ebp - 0x74]
movzx eax, word [edx + 0xec]
cmp ax, bx
jne 0x4d2c45
push 0
lea edi, [esi + 0x3b0]
push edi
push 0xe6
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x68]
push 0xffffffffffffffff
fstp dword [ebp - 0x64]
lea eax, [ebp - 0x18]
fld dword [esi + 0x1e4]
push eax
fstp dword [ebp - 0x18]
push ecx
fld dword [esi + 0x1e8]
lea ecx, [ebp - 0x68]
fstp dword [ebp - 0x14]
fldz
fstp dword [esp]
push 0
push ecx
jmp 0x4d2d1e
cmp eax, 2
jne 0x4d2c93
push 0
lea edi, [esi + 0x3b0]
push edi
push 0xe7
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x68]
push 0xffffffffffffffff
fstp dword [ebp - 0x64]
lea edx, [ebp - 0x18]
fld dword [esi + 0x1e4]
push edx
fstp dword [ebp - 0x18]
push ecx
fld dword [esi + 0x1e8]
lea eax, [ebp - 0x68]
fstp dword [ebp - 0x14]
fldz
fstp dword [esp]
push 0
push eax
jmp 0x4d2d1e
cmp eax, 3
jne 0x4d2ca8
push 0
lea edi, [esi + 0x3b0]
push edi
push 0xe8
jmp 0x4d2ce8
cmp eax, 4
jne 0x4d2cc0
push 0
lea edi, [esi + 0x3b0]
push edi
push 0xe9
jmp 0x4d2c0a
cmp eax, 5
jne 0x4d2cd5
push 0
lea edi, [esi + 0x3b0]
push edi
push 0xea
jmp 0x4d2c58
cmp eax, 6
jne 0x4d2d25
push 0
lea edi, [esi + 0x3b0]
push edi
push 0xfa
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x68]
push 0xffffffffffffffff
fstp dword [ebp - 0x64]
lea ecx, [ebp - 0x18]
fld dword [esi + 0x1e4]
push ecx
fstp dword [ebp - 0x18]
push ecx
fld dword [esi + 0x1e8]
lea edx, [ebp - 0x68]
fstp dword [ebp - 0x14]
fldz
fstp dword [esp]
push 0
push edx
mov ecx, edi
call fcn.004b0390
cmp dword [esi + 0x30c], ebx
jne 0x4d2d6a
mov ecx, dword [esi + 0x1e0]
fldz
imul ecx, dword [esi + 0x1dc]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shl edx, 0x18
or edx, 0xffffff
push edx
lea edx, [esi + 0x1e4]
push edx
push ecx
lea ecx, [esi + 0x260]
fstp dword [esp]
push 0
push 0
call fcn.004b0390
mov eax, dword [esi + 0x2c4]
push eax
mov ecx, 0x6d5cf0
call fcn.004d6f20
test eax, eax
jne 0x4d2d91
push eax
push 0x3d
push str.Item.cpp
call fcn.0040b590
add esp, 0xc
jmp 0x4d2d99
cmp word [eax + 0x4a], 0x102
je 0x4d2dda
mov ecx, dword [esi + 0x2c4]
push ecx
mov ecx, 0x6d5cf0
call fcn.004d6f20
test eax, eax
jne 0x4d2dc0
push eax
push 0x3d
push str.Item.cpp
call fcn.0040b590
add esp, 0xc
jmp 0x4d2dc8
cmp word [eax + 0x4a], 0x103
je 0x4d2dda
mov ecx, esi
call fcn.004d2860
cmp eax, 0x112
jne 0x4d2eaf
mov edx, dword [esi + 0x2c4]
push edx
mov ecx, 0x6d5cf0
call fcn.004d7550
test eax, eax
je 0x4d2e55
lea ecx, [ebp - 0x40]
call fcn.004b0340
push ebx
lea eax, [ebp - 0x40]
push eax
push 0xb02
mov ecx, 0x6d58c8
mov dword [ebp - 4], 0
call fcn.004b5880
fld1
fst dword [ebp - 0x68]
push 0xffffffffffffffff
fstp dword [ebp - 0x64]
lea ecx, [ebp - 0x18]
fld dword [esi + 0x1e4]
push ecx
fstp dword [ebp - 0x18]
push ecx
fld dword [esi + 0x1e8]
lea edx, [ebp - 0x68]
fstp dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
fldz
fstp dword [esp]
push 0
push edx
call fcn.004b0390
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.004b0350
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x50], 2
jne 0x4d2eaf
push 0
lea edi, [esi + 0x3f0]
push edi
push 0xf6
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x68]
push 0xffffffffffffffff
fstp dword [ebp - 0x64]
lea ecx, [ebp - 0x18]
fld dword [esi + 0x1e4]
push ecx
fadd qword [0x5d11e8]
push ecx
lea edx, [ebp - 0x68]
mov ecx, edi
fstp dword [ebp - 0x18]
fld dword [esi + 0x1e8]
fstp dword [ebp - 0x14]
fldz
fstp dword [esp]
push 0
push edx
call fcn.004b0390
mov eax, dword [esi + 0x2c4]
push eax
mov ecx, 0x6d5cf0
call fcn.004d6f20
test eax, eax
jne 0x4d2ed9
push eax
push 0x3d
push str.Item.cpp
call fcn.0040b590
add esp, 0xc
jmp 0x4d2f5f
cmp word [eax + 0x4a], 0x22b
jne 0x4d2f5f
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [0x6d8f5c]
add ecx, 0x69c
mov dword [ebp - 0x78], 0
call fcn.00417200
fstp dword [ebp - 0x6c]
fldz
fld dword [ebp - 0x6c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4d2f5b
fld1
movzx edx, word [esi + 0x226]
fstp dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
push 0xff000000
lea eax, [ebp - 0x18]
fst dword [ebp - 0x64]
push eax
fld dword [esi + 0x1e4]
push ecx
fstp dword [ebp - 0x18]
lea ecx, [ebp - 0x68]
fld1
fsubrp st(1)
fild dword [ebp - 0x6c]
fmulp st(1)
fadd dword [esi + 0x1e8]
fstp dword [ebp - 0x14]
fstp dword [esp]
push 0
push ecx
lea ecx, [esi + 0x310]
call fcn.004b0390
jmp 0x4d2f5f
fstp st(0)
fstp st(0)
cmp word [esi + 0x2dc], 3
jne 0x4d2fbe
push 0
lea edi, [esi + 0x330]
push edi
push 0xcc
mov ecx, 0x6d58c8
call fcn.004b5880
fld dword [0x5cd61c]
fst dword [ebp - 0x68]
push 0xffffffffffffffff
fstp dword [ebp - 0x64]
lea edx, [ebp - 0x18]
fld dword [esi + 0x1e4]
push edx
fstp dword [ebp - 0x18]
push ecx
fld dword [esi + 0x1e8]
lea eax, [ebp - 0x68]
fadd qword [0x5d11e8]
mov ecx, edi
fstp dword [ebp - 0x14]
fldz
fstp dword [esp]
push 0
push eax
call fcn.004b0390
cmp dword [esi + 0x2de], 0
je 0x4d310b
mov ecx, dword [ebp - 0x74]
movzx eax, word [ecx + 0x4a]
mov edx, 0x800
cmp ax, dx
jbe 0x4d310b
mov ecx, 0x834
cmp ax, cx
ja 0x4d310b
mov eax, dword [esi + 0x410]
test eax, eax
je 0x4d30bb
cmp dword [eax + 2], 0
je 0x4d306d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp eax, dword [esi + 0x418]
jb 0x4d306d
call edi
add eax, 0x50
cmp dword [esi + 0x41c], 0
mov dword [esi + 0x418], eax
jne 0x4d302f
add word [esi + 0x416], bx
jmp 0x4d3047
mov dx, word [esi + 0x414]
mov word [esi + 0x416], dx
mov dword [esi + 0x41c], 0
mov ecx, dword [esi + 0x410]
movzx edx, word [ecx + 6]
movzx eax, word [esi + 0x414]
movzx ecx, word [esi + 0x416]
lea eax, [eax + edx - 1]
cmp ecx, eax
jl 0x4d306d
mov dword [esi + 0x41c], ebx
movzx edx, word [esi + 0x416]
push 8
lea edi, [esi + 0x3d0]
push edi
push edx
mov ecx, 0x6d58c8
call fcn.004b5880
push 0xffffffffffffffff
fld1
lea eax, [ebp - 0x18]
fst dword [ebp - 0x68]
push eax
fstp dword [ebp - 0x64]
push ecx
fld dword [esi + 0x1e4]
lea ecx, [ebp - 0x68]
fstp dword [ebp - 0x18]
fld dword [esi + 0x1e8]
fstp dword [ebp - 0x14]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
push ebx
lea edi, [esi + 0x3b0]
push edi
push 0xb26
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x70]
push 0xffffffffffffffff
fstp dword [ebp - 0x6c]
lea edx, [ebp - 0x7c]
fld dword [esi + 0x1e4]
push edx
fadd qword [0x5d11e8]
push ecx
lea eax, [ebp - 0x70]
mov ecx, edi
fstp dword [ebp - 0x7c]
fld dword [esi + 0x1e8]
fstp dword [ebp - 0x78]
fldz
fstp dword [esp]
push 0
push eax
call fcn.004b0390
mov eax, dword [ebp - 0x74]
add eax, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d3114
mov ecx, dword [ebp - 0x74]
sub eax, edx
mov edi, eax
mov bl, 0x2b
cmp byte [edi + ecx + 2], bl
jne 0x4d31f0
mov edx, ecx
movsx eax, byte [edi + edx + 3]
push eax
lea ecx, [ebp - 0x6c]
push 0x5cf9f8
push ecx
call fcn.0059a4c2
add esp, 0xc
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
dec eax
mov dword [ebp - 0x30], eax
call fcn.0059a110
mov edx, eax
mov eax, 1
sub edx, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x2c], edx
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d3180
sub eax, ecx
push 0xff0a0a0a
lea ecx, [ebp - 0x30]
push ecx
push eax
lea edx, [ebp - 0x6c]
push edx
push 0xb
mov ecx, 0x603a40
call fcn.004ad3f0
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x20], eax
call fcn.0059a110
mov dword [ebp - 0x1c], eax
mov eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x6c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d31d0
sub eax, ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
push ecx
push eax
lea edx, [ebp - 0x6c]
push edx
push 0xa
mov ecx, 0x603a40
call fcn.004ad3f0
mov eax, dword [ebp - 0x74]
cmp byte [edi + eax + 1], bl
jne 0x4d3380
mov ecx, eax
movzx eax, word [ecx + 0x4a]
mov edx, 0x100
cmp ax, dx
jbe 0x4d32bd
mov ecx, 0x106
cmp ax, cx
ja 0x4d32bd
push 0x5d7868
lea edx, [ebp - 0x6c]
push 0x5c7824
push edx
call fcn.0059a4c2
fld dword [esi + 0x1e4]
add esp, 0xc
call fcn.0059a110
fld dword [esi + 0x1e8]
mov edi, 1
sub eax, edi
mov dword [ebp - 0x30], eax
call fcn.0059a110
sub eax, edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d3266
sub eax, ecx
push 0xff0a0a0a
lea ecx, [ebp - 0x30]
push ecx
push eax
lea edx, [ebp - 0x6c]
push edx
push 0xb
mov ecx, 0x603a40
call fcn.004ad3f0
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x20], eax
call fcn.0059a110
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d32b1
jmp 0x4d3367
mov eax, dword [ebp - 0x74]
movzx ecx, word [eax + 0x96]
push ecx
lea edx, [ebp - 0x6c]
push 0x5cdc20
push edx
call fcn.0059a4c2
add esp, 0xc
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov edi, 1
sub eax, edi
mov dword [ebp - 0x30], eax
call fcn.0059a110
sub eax, edi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d3310
sub eax, ecx
push 0xff0a0a0a
lea ecx, [ebp - 0x30]
push ecx
push eax
lea edx, [ebp - 0x6c]
push edx
push 0xb
mov ecx, 0x603a40
call fcn.004ad3f0
fld dword [esi + 0x1e4]
call fcn.0059a110
fld dword [esi + 0x1e8]
mov dword [ebp - 0x20], eax
call fcn.0059a110
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea ecx, [eax + 1]
jmp 0x4d3360
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d3360
sub eax, ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
push ecx
push eax
lea edx, [ebp - 0x6c]
push edx
push 0xa
mov ecx, 0x603a40
call fcn.004ad3f0
cmp dword [esi + 0x2ca], 0
je 0x4d33fb
mov eax, dword [ebp - 0x74]
movzx eax, word [eax + 0x4a]
mov ecx, 0x800
cmp ax, cx
jbe 0x4d33fb
mov edx, 0x834
cmp ax, dx
ja 0x4d33fb
push 1
lea edi, [esi + 0x3b0]
push edi
push 0xadb
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x68]
push 0xffffffffffffffff
fstp dword [ebp - 0x64]
lea eax, [ebp - 0x18]
fld dword [esi + 0x1e4]
push eax
fadd qword [0x5d11e8]
push ecx
lea ecx, [ebp - 0x68]
fstp dword [ebp - 0x18]
fld dword [esi + 0x1e8]
fadd qword [0x5d11e0]
fstp dword [ebp - 0x14]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
mov edx, dword [ebp - 0x74]
movzx eax, word [edx + 0x4a]
mov ecx, 0x800
cmp ax, cx
jb 0x4d3476
mov edx, 0x834
cmp ax, dx
ja 0x4d3476
cmp dword [esi + 0x2ce], 0
je 0x4d3476
mov ebx, 1
push ebx
lea edi, [esi + 0x3b0]
push edi
push 0xab7
mov ecx, 0x6d58c8
call fcn.004b5880
fld1
fst dword [ebp - 0x68]
push 0xffffffffffffffff
fstp dword [ebp - 0x64]
lea eax, [ebp - 0x18]
fld dword [esi + 0x1e4]
push eax
fstp dword [ebp - 0x18]
push ecx
fld dword [esi + 0x1e8]
lea ecx, [ebp - 0x68]
fadd qword [0x5d11e8]
fstp dword [ebp - 0x14]
fldz
fstp dword [esp]
push 0
push ecx
mov ecx, edi
call fcn.004b0390
jmp 0x4d347b
mov ebx, 1
mov edx, dword [esi + 0x2c4]
push edx
mov ecx, 0x6d5cf0
call fcn.004d7120
test eax, eax
je 0x4d35fa
mov eax, dword [esi + 0x2ca]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x5c7828
push 0x6d5bdc
call edi
fld dword [esi + 0x1e4]
add esp, 0xc
call fcn.0059a110
fld dword [esi + 0x1e8]
add eax, 0x1b
mov dword [ebp - 0x60], eax
call fcn.0059a110
add eax, 0x1d
mov dword [ebp - 0x5c], eax
mov eax, 0x6d5bdc
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d34e0
mov edx, dword [esi + 0x1e0]
imul edx, dword [esi + 0x1dc]
sub eax, ecx
mov ecx, eax
mov eax, 0x51eb851f
mul edx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1d8]
lea eax, [ebp - 0x60]
push edx
push eax
push ecx
push 0x6d5bdc
push 0
mov ecx, 0x603a40
call fcn.004ad3f0
mov ecx, dword [esi + 0x2c4]
push ecx
mov ecx, 0x6d5cf0
call fcn.004d6f20
test eax, eax
jne 0x4d354c
push eax
push 0x3d
push str.Item.cpp
call fcn.0040b590
add esp, 0xc
jmp 0x4d35fa
cmp word [eax + 0x4a], 0x8001
jne 0x4d35fa
mov edx, dword [esi + 0x2c4]
push edx
mov ecx, 0x6d5cf0
call fcn.004d6f20
movzx eax, word [eax + 0xe0]
test ax, ax
je 0x4d35fa
push eax
push str.Lv._d
push 0x6d5bd8
call edi
fld dword [esi + 0x1e4]
add esp, 0xc
call fcn.0059a110
fld dword [esi + 0x1e8]
sub eax, ebx
mov dword [ebp - 0x50], eax
call fcn.0059a110
sub eax, 2
mov dword [ebp - 0x4c], eax
mov eax, 0x6d5bd8
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d35b8
mov edx, dword [esi + 0x1e0]
imul edx, dword [esi + 0x1dc]
sub eax, ecx
mov ecx, eax
mov eax, 0x51eb851f
mul edx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1d8]
lea eax, [ebp - 0x50]
push edx
push eax
push ecx
push 0x6d5bd8
push 0xb
mov ecx, 0x603a40
call fcn.004ad3f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret