Function at 0x4a6e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
mov dword [ebp - 0x70], 0
mov eax, dword [0x663674]
mov dword [ebp - 0x5c], eax
mov ecx, dword [0x663678]
mov dword [ebp - 0x38], ecx
mov edx, dword [0x66367c]
sub edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [0x663680]
sub eax, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x68], 0
mov ecx, 0x2200
mov word [ebp - 0x40], cx
mov edx, 0x2200
mov word [ebp - 0x3e], dx
mov eax, 0x2200
mov word [ebp - 0x3c], ax
xor ecx, ecx
mov word [ebp - 0x1c], cx
xor edx, edx
mov word [ebp - 0x1a], dx
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 0xe
mov dword [ebp - 4], 0x11
mov ecx, 0xff00
mov word [ebp - 0x58], cx
mov edx, 0x5500
mov word [ebp - 0x56], dx
xor eax, eax
mov word [ebp - 0x54], ax
mov ecx, 0xff00
mov word [ebp - 0x52], cx
mov edx, 0xff00
mov word [ebp - 0x50], dx
xor eax, eax
mov word [ebp - 0x4e], ax
xor ecx, ecx
mov word [ebp - 0x4c], cx
mov edx, 0xff00
mov word [ebp - 0x4a], dx
xor eax, eax
mov word [ebp - 0x48], ax
xor ecx, ecx
mov word [ebp - 0x64], cx
xor edx, edx
mov word [ebp - 0x62], dx
xor eax, eax
mov word [ebp - 0x60], ax
xor ecx, ecx
mov word [ebp - 0x5e], cx
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x44], 0x10
push str.SR_ShowScore
push 4
call fcn.00436500
add esp, 8
mov dword [ebp - 0x68], 0xffffffff
cmp dword [0x5fcdcc], 0
jle 0x4a6ff3
mov dword [ebp - 0x68], 0
cmp dword [0x5fcdcc], 0xfa
jle 0x4a6ff3
mov dword [ebp - 0x68], 1
cmp dword [0x5fcdcc], 0x15e
jle 0x4a6ff3
mov dword [ebp - 0x68], 2
xor edx, edx
cmp dword [0x5fcdcc], 0x1f3
setg dl
mov eax, dword [ebp - 0x68]
lea ecx, [eax + edx + 1]
mov dword [0x5fcdb8], ecx
cmp dword [0x5fd888], 0
je 0x4a702a
cmp dword [0x5fd880], 0
je 0x4a702a
cmp dword [0x5fcfd8], 0
jne 0x4a702f
jmp 0x4a7a34
mov edx, dword [0x5fcdbc]
add edx, 1
mov dword [0x5fcdbc], edx
mov eax, dword [0x5fcdc0]
add eax, dword [0x5fcdb8]
mov dword [0x5fcdc0], eax
xor ecx, ecx
cmp dword [0x5fcdcc], 0x1f3
setg cl
mov edx, dword [ebp - 0x68]
lea eax, [edx + ecx + 2]
push eax
call fcn.00463150
add esp, 4
mov ecx, dword [0x5fdb08]
push ecx
call fcn.00460c80
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
imul edx, edx, 0x1564
mov eax, dword [0x5fda70]
imul eax, eax, 0x94
lea ecx, [edx + eax + 0x667080]
mov edx, dword [0x5fda4c]
cmp dword [ecx + edx*4], 0
jne 0x4a70ab
jmp 0x4a7a34
mov eax, dword [ebp - 0x70]
imul eax, eax, 0x1564
mov ecx, dword [0x5fda70]
imul ecx, ecx, 0x94
lea edx, [eax + ecx + 0x667080]
mov eax, dword [0x5fda4c]
mov ecx, dword [edx + eax*4]
movsx edx, byte [ecx + 0xa3]
cmp edx, 0x54
je 0x4a710b
mov eax, dword [ebp - 0x70]
imul eax, eax, 0x1564
mov ecx, dword [0x5fda70]
imul ecx, ecx, 0x94
lea edx, [eax + ecx + 0x667080]
mov eax, dword [0x5fda4c]
mov ecx, dword [edx + eax*4]
movsx edx, byte [ecx + 0xa3]
cmp edx, 0x50
jne 0x4a7110
jmp 0x4a7a34
cmp dword [ebp + 8], 0
jne 0x4a716e
push 1
call fcn.004a6940
add esp, 4
cmp dword [0x5fcfd4], 0
je 0x4a7169
cmp dword [0x5fdac4], 0
jle 0x4a715f
cmp dword [0x5fdac0], 0
jle 0x4a715f
push 0
mov eax, dword [0x5fdac0]
push eax
mov ecx, dword [0x5fdac4]
push ecx
mov edx, dword [0x5fdabc]
push edx
mov eax, dword [0x5fdab8]
push eax
call fcn.004d1100
add esp, 0x14
mov dword [0x5fcfd4], 0
jmp 0x4a7a34
movsx ecx, word [0x600434]
test ecx, ecx
je 0x4a72d5
cmp dword [0x5fcfd4], 0
je 0x4a718b
jmp 0x4a7a34
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x34]
push eax
push 0x22b
call fcn.004dc410
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x5c]
push 0x174
call fcn.0049d520
add esp, 4
cmp esi, eax
jle 0x4a7229
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
push 0xba
call fcn.0049d520
add esp, 4
mov edx, dword [ebp - 0x24]
sub edx, eax
mov dword [ebp - 0x5c], edx
push 0xba
call fcn.0049d520
add esp, 4
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
cmp dword [0x5fcfd0], 0
je 0x4a7248
mov eax, dword [0x5fcfd0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x44]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x20]
sub ecx, eax
sub ecx, 2
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x28], ecx
cmp dword [0x5fcdcc], 0x15e
jg 0x4a72d0
movsx edx, byte [0x5fced0]
test edx, edx
je 0x4a72d0
push 0x14
call fcn.0049d520
add esp, 4
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov dword [ebp - 0x38], ecx
push 0x14
call fcn.0049d520
add esp, 4
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x28], edx
cmp dword [0x5fcfd0], 0
je 0x4a72d0
push 8
call fcn.0049d520
add esp, 4
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov dword [ebp - 0x38], ecx
push 8
call fcn.0049d520
add esp, 4
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x28], edx
jmp 0x4a7377
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x5c]
cmp eax, 0xba
jle 0x4a7302
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
sub ecx, 0x5d
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x24]
add edx, 0x5d
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
cmp dword [0x5fcfd0], 0
je 0x4a7321
mov eax, dword [0x5fcfd0]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 0xe
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xf
mov dword [ebp - 0x28], edx
cmp dword [0x5fcdcc], 0x15e
jg 0x4a7377
movsx eax, byte [0x5fced0]
test eax, eax
je 0x4a7377
mov ecx, dword [ebp - 0x38]
sub ecx, 0xa
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x28]
sub edx, 0xa
mov dword [ebp - 0x28], edx
cmp dword [0x5fcfd0], 0
je 0x4a7377
mov eax, dword [ebp - 0x38]
sub eax, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x28]
sub ecx, 4
mov dword [ebp - 0x28], ecx
mov dword [0x5fcfd4], 1
call fcn.004d3290
mov dx, word [ebp - 0x5c]
mov word [ebp - 0x62], dx
mov ax, word [ebp - 0x2c]
mov word [ebp - 0x5e], ax
mov cx, word [ebp - 0x38]
mov word [ebp - 0x64], cx
mov dx, word [ebp - 0x28]
mov word [ebp - 0x60], dx
cmp dword [0x5fcdcc], 0x15e
jg 0x4a73e1
movsx eax, word [0x600434]
test eax, eax
je 0x4a73d6
push 0x28
call fcn.0049d520
add esp, 4
movsx ecx, ax
movsx edx, word [ebp - 0x60]
add edx, ecx
mov word [ebp - 0x60], dx
jmp 0x4a73e1
movsx eax, word [ebp - 0x60]
add eax, 0x14
mov word [ebp - 0x60], ax
mov ecx, dword [ebp - 0x5c]
mov dword [0x5fdab8], ecx
mov edx, dword [ebp - 0x38]
mov dword [0x5fdabc], edx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x5c]
add eax, 1
mov dword [0x5fdac4], eax
movsx ecx, word [ebp - 0x60]
movsx edx, word [ebp - 0x64]
sub ecx, edx
add ecx, 1
mov dword [0x5fdac0], ecx
push 0
mov eax, dword [0x5fdac0]
push eax
mov ecx, dword [0x5fdac4]
push ecx
mov edx, dword [0x5fdabc]
push edx
mov eax, dword [0x5fdab8]
push eax
call fcn.004d0c80
add esp, 0x14
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.004d5dc0
add esp, 8
movsx edx, word [0x600434]
test edx, edx
je 0x4a7471
push 0x22b
mov eax, dword [ebp - 0x38]
add eax, 2
push eax
mov ecx, dword [ebp - 0x5c]
add ecx, 2
push ecx
call fcn.004b8b60
add esp, 0xc
jmp 0x4a769b
xor edx, edx
mov word [ebp - 0x84], dx
xor eax, eax
mov word [ebp - 0x82], ax
xor ecx, ecx
mov word [ebp - 0x80], cx
xor edx, edx
mov word [ebp - 0x7e], dx
push 2
push 0xc8
mov eax, dword [0x6013e4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4a769b
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [0x6013e4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4a769b
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [0x6013e4]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x88]
add eax, 0xe
push eax
call fcn.005309e0
add esp, 4
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x4a769b
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00530a20
add esp, 4
mov edx, dword [ebp - 0x94]
mov eax, dword [edx]
mov dword [ebp - 0x8c], eax
push 0xe
push 0
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.005323e0
add esp, 0xc
push str.BMP_n
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00532580
add esp, 8
mov eax, dword [ebp - 0x8c]
mov byte [eax + 0xa], 0x36
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x8c]
add eax, 0xe
push eax
call fcn.00533040
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00530a20
add esp, 4
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [0x5ff22c]
push ecx
call fcn.00530f90
add esp, 8
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x4a768c
lea edx, [ebp - 0x84]
push edx
mov eax, dword [0x5ff22c]
push eax
call fcn.00531050
add esp, 8
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x4a768c
movsx ecx, word [ebp - 0x28]
sub ecx, 0x1c
push ecx
movsx edx, word [ebp - 0x5c]
add edx, 2
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.00531400
add esp, 0xc
movsx ecx, word [0x60043c]
test ecx, ecx
je 0x4a762e
movzx edx, word [0x601334]
push edx
movzx eax, word [0x601330]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.00531400
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
mov eax, dword [0x5ff22c]
push eax
call fcn.00531190
add esp, 8
mov dword [ebp - 0x7c], eax
push 0
mov ecx, dword [0x5ff21c]
push ecx
mov edx, dword [0x5ff22c]
push edx
call fcn.005310c0
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov eax, dword [0x5ff21c]
mov dword [eax + 0x68], 0
mov ecx, dword [0x5ff22c]
push ecx
call fcn.00531090
add esp, 4
mov dword [ebp - 0x7c], eax
mov edx, dword [0x5ff21c]
mov dword [edx + 0x68], 0x64d520
mov eax, dword [ebp - 0x94]
push eax
call fcn.00530aa0
add esp, 4
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x2c]
sub eax, 3
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x5c]
add edx, 3
push edx
call fcn.004d3e10
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
movsx ecx, word [ebp - 0x60]
sub ecx, 3
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x38]
add eax, 3
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004d3e10
add esp, 0x14
push 0
movsx edx, word [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x2c]
sub eax, 2
push eax
movsx ecx, word [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x5c]
add edx, 2
push edx
call fcn.004d3d10
add esp, 0x14
push 0
movsx eax, word [ebp - 0x60]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 2
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004d3d10
add esp, 0x14
mov ecx, dword [ebp - 0x5c]
add ecx, 0x28
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 5
mov edx, dword [ebp - 0x14]
lea eax, [edx*4 - 4]
mov dword [ebp - 0x10], eax
movsx ecx, word [0x600434]
test ecx, ecx
je 0x4a7776
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + edx + 0x14]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
shl edx, 1
push edx
call fcn.0049d520
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
lea ecx, [eax*4 - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x30], 0
jmp 0x4a7788
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 4
jge 0x4a78df
cmp dword [ebp - 0x30], 0
jle 0x4a779e
cmp dword [ebp - 0x68], 0
je 0x4a77aa
cmp dword [ebp - 0x30], 1
jle 0x4a77b1
cmp dword [ebp - 0x68], 1
jne 0x4a77b1
mov dword [ebp - 0x68], 0xffffffff
cmp dword [ebp - 0x30], 2
jle 0x4a77ca
cmp dword [0x5fcdcc], 0x1f4
jge 0x4a77ca
mov dword [ebp - 0x68], 0xffffffff
mov eax, dword [ebp - 0x14]
sub eax, 1
mov ecx, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x6c], 0
jmp 0x4a77ea
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x30]
jg 0x4a78cd
cmp dword [ebp - 0x68], 0
jl 0x4a7899
cmp dword [ebp - 0x68], 3
jge 0x4a7899
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp + ecx*4 - 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx - 1]
push eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004d3ee0
add esp, 0x14
mov eax, dword [ebp - 0x68]
imul eax, eax, 6
lea ecx, [ebp + eax - 0x58]
push ecx
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x14]
add edx, 1
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax - 1]
push edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add eax, 1
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
call fcn.004d3e10
add esp, 0x14
mov edx, dword [ebp - 0x68]
imul edx, edx, 6
lea eax, [ebp + edx - 0x58]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
add edx, 2
push edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
push ecx
call fcn.004d3e10
add esp, 0x14
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx - 1]
push eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004d3e10
add esp, 0x14
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
jmp 0x4a77e1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx + 2]
mov dword [ebp - 0x24], eax
jmp 0x4a777f
movsx ecx, word [0x600434]
test ecx, ecx
je 0x4a78fe
mov edx, dword [ebp - 0x24]
add edx, 0x14
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
sub eax, 8
mov dword [ebp - 0x20], eax
jmp 0x4a7913
mov ecx, dword [ebp - 0x5c]
add ecx, 0x82
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x28]
sub edx, 4
mov dword [ebp - 0x20], edx
cmp dword [0x5fcdcc], 0x15e
jg 0x4a7a1c
movsx eax, byte [0x5fced0]
test eax, eax
je 0x4a7a1c
push str.B_014
call fcn.004deed0
add esp, 4
push 0
xor ecx, ecx
cmp dword [0x5fcdcc], 0xfa
setg cl
sub ecx, 1
and ecx, 0xfffffff6
add ecx, 0xe
push ecx
call fcn.004d4880
add esp, 8
movzx edx, word [ebp - 0x20]
push edx
movzx eax, word [ebp - 0x24]
push eax
call fcn.004d3130
add esp, 8
push 0x571fc4
push 0
push 0
call fcn.004d48a0
add esp, 0xc
push 0
push 0xf
call fcn.004d4880
add esp, 8
push 1
push 0x5fced0
call fcn.00532e80
add esp, 4
push eax
push 0x5fced0
call fcn.004d4260
add esp, 0xc
mov dword [ebp - 0x10], eax
movsx ecx, word [0x600434]
test ecx, ecx
je 0x4a79e9
movsx esi, word [ebp - 0x60]
push 6
call fcn.0049d520
add esp, 4
sub esi, eax
push esi
mov edx, dword [ebp - 0x5c]
add edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x10]
movsx eax, dx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.004d3130
add esp, 8
jmp 0x4a7a0b
movsx eax, word [ebp - 0x28]
add eax, 0x11
push eax
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x10]
movsx eax, cx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.004d3130
add esp, 8
push 0x5fced0
push 0
push 0
call fcn.004d48a0
add esp, 0xc
mov dx, word [ebp - 0x60]
add dx, 1
mov word [ebp - 0x60], dx
lea eax, [ebp - 0x64]
push eax
call fcn.004d3350
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret